Class ApplicationDependencyResolver
java.lang.Object
io.quarkus.bootstrap.resolver.maven.ApplicationDependencyResolver
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidresolve(org.eclipse.aether.collection.CollectRequest collectRtDepsRequest) Resolves application dependencies and adds the to the application model builder.setApplicationModelBuilder(io.quarkus.bootstrap.model.ApplicationModelBuilder appBuilder) Application model builder to add the resolved dependencies to.setArtifactResolver(MavenArtifactResolver resolver) Maven artifact resolver that should be used to resolve application dependenciessetCollectCompileOnly(List<org.eclipse.aether.graph.Dependency> collectCompileOnly) In addition to resolving dependencies for the build classpath, also resolve these compile-only dependencies and add them to the application model asDependencyFlags.COMPILE_ONLY.setCollectReloadableModules(boolean collectReloadableModules) Whether to indicate which resolved dependencies are reloadable.setDependencyLogging(DependencyLoggingConfig depLogging) Dependency logging configuration.setDevMode(boolean devMode) Whether an application model is resolved for dev modesetManagedDependencies(Map<io.quarkus.maven.dependency.ArtifactKey, org.eclipse.aether.graph.Dependency> managedDeps) Managed dependency version constraints.setRuntimeModelOnly(boolean runtimeModelOnly) Whether to limit the resultingApplicationModelto the runtime dependencies.
-
Constructor Details
-
ApplicationDependencyResolver
public ApplicationDependencyResolver()
-
-
Method Details
-
newInstance
-
setArtifactResolver
Maven artifact resolver that should be used to resolve application dependencies- Parameters:
resolver- Maven artifact resolver- Returns:
- self
-
setApplicationModelBuilder
public ApplicationDependencyResolver setApplicationModelBuilder(io.quarkus.bootstrap.model.ApplicationModelBuilder appBuilder) Application model builder to add the resolved dependencies to.- Parameters:
appBuilder- application model builder- Returns:
- self
-
setCollectReloadableModules
Whether to indicate which resolved dependencies are reloadable.- Parameters:
collectReloadableModules- whether indicate which resolved dependencies are reloadable- Returns:
- self
-
setDependencyLogging
Dependency logging configuration. For example to log the resolved dependency tree.- Parameters:
depLogging- dependency logging configuration- Returns:
- self
-
setCollectCompileOnly
public ApplicationDependencyResolver setCollectCompileOnly(List<org.eclipse.aether.graph.Dependency> collectCompileOnly) In addition to resolving dependencies for the build classpath, also resolve these compile-only dependencies and add them to the application model asDependencyFlags.COMPILE_ONLY.- Parameters:
collectCompileOnly- compile-only dependencies to add to the model- Returns:
- self
-
setRuntimeModelOnly
Whether to limit the resultingApplicationModelto the runtime dependencies.- Parameters:
runtimeModelOnly- whether to limit the resulting application model to the runtime dependencies- Returns:
- self
-
setDevMode
Whether an application model is resolved for dev mode- Parameters:
devMode- whether an application model is resolved for dev mode- Returns:
- self
-
setManagedDependencies
public ApplicationDependencyResolver setManagedDependencies(Map<io.quarkus.maven.dependency.ArtifactKey, org.eclipse.aether.graph.Dependency> managedDeps) Managed dependency version constraints.- Parameters:
managedDeps- managed dependency version constraints- Returns:
- self
-
resolve
public void resolve(org.eclipse.aether.collection.CollectRequest collectRtDepsRequest) throws io.quarkus.bootstrap.resolver.AppModelResolverException Resolves application dependencies and adds the to the application model builder.- Parameters:
collectRtDepsRequest- request to collect runtime dependencies- Throws:
io.quarkus.bootstrap.resolver.AppModelResolverException- in case of a failure
-