Package io.quarkus.bootstrap.resolver
Class BootstrapAppModelResolver
java.lang.Object
io.quarkus.bootstrap.resolver.BootstrapAppModelResolver
- All Implemented Interfaces:
AppModelResolver
- Author:
- Alexey Loubyansky
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected booleanprotected final MavenArtifactResolverprotected boolean -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddRemoteRepositories(List<org.eclipse.aether.repository.RemoteRepository> repos) getLatestVersion(ArtifactCoords appArtifact, String upToVersion, boolean inclusive) getLatestVersionFromRange(ArtifactCoords appArtifact, String range) getNextVersion(ArtifactCoords appArtifact, String fromVersion, boolean fromVersionIncluded, String upToVersion, boolean upToVersionInclusive) voidinstall(ArtifactCoords artifact, Path localPath) static booleanisLegacyModelResolver(Properties projectProperties) Temporary method that will be removed once the legacyApplicationModelresolver implementation gets removed.listLaterVersions(ArtifactCoords appArtifact, String upToVersion, boolean inclusive) voidrelink(ArtifactCoords artifact, Path path) resolve(ArtifactCoords coords) List<org.eclipse.aether.repository.RemoteRepository>resolveArtifactRepos(ArtifactCoords appArtifact) resolveManagedModel(ArtifactCoords appArtifact, Collection<Dependency> directDeps, ArtifactCoords managingProject, Set<ArtifactKey> reloadableModules) resolveModel(WorkspaceModule module) Resolve application mode for the main application module that might not have a POM file on disk.resolveModel(ArtifactCoords appArtifact) resolveModel(ArtifactCoords appArtifact, Collection<Dependency> directDeps) resolveUserDependencies(ArtifactCoords appArtifact, Collection<Dependency> deps) voidsetBuildTreeLogger(Consumer<String> buildTreeConsumer) setCollectReloadableDependencies(boolean collectReloadableDeps) voidsetDepLogConfig(DependencyLoggingConfig depLogConfig) setDevMode(boolean devmode) Indicates whether application should be resolved to set up the dev mode.setLegacyModelResolver(boolean legacyModelResolver) Temporary method that will be removed once the legacyApplicationModelresolver implementation gets removed.setRuntimeModelOnly(boolean runtimeModelOnly) setTest(boolean test) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.quarkus.bootstrap.resolver.AppModelResolver
resolveUserDependencies
-
Field Details
-
mvn
-
devmode
protected boolean devmode -
test
protected boolean test
-
-
Constructor Details
-
BootstrapAppModelResolver
-
-
Method Details
-
isLegacyModelResolver
Temporary method that will be removed once the legacyApplicationModelresolver implementation gets removed.Returns
trueif the system or POM propertyquarkus.bootstrap.legacy-model-resolveris set totrue.- Returns:
- true if the legacy application model resolver should be used
-
setLegacyModelResolver
Temporary method that will be removed once the legacyApplicationModelresolver implementation gets removed.- Returns:
- this application model resolver
-
setBuildTreeLogger
-
setDepLogConfig
-
setDevMode
Indicates whether application should be resolved to set up the dev mode. The important difference between the dev mode and the usual build is that in the dev mode the user application will have to be compiled, so the classpath will have to include dependencies of scope provided.- Parameters:
devmode- whether the resolver is going to be used to set up the dev mode
-
setTest
-
setCollectReloadableDependencies
-
setRuntimeModelOnly
-
addRemoteRepositories
-
relink
- Specified by:
relinkin interfaceAppModelResolver- Throws:
AppModelResolverException
-
resolve
- Specified by:
resolvein interfaceAppModelResolver- Throws:
AppModelResolverException
-
resolveUserDependencies
public Collection<ResolvedDependency> resolveUserDependencies(ArtifactCoords appArtifact, Collection<Dependency> deps) throws AppModelResolverException - Specified by:
resolveUserDependenciesin interfaceAppModelResolver- Throws:
AppModelResolverException
-
resolveModel
- Specified by:
resolveModelin interfaceAppModelResolver- Throws:
AppModelResolverException
-
resolveModel
public ApplicationModel resolveModel(ArtifactCoords appArtifact, Collection<Dependency> directDeps) throws AppModelResolverException - Specified by:
resolveModelin interfaceAppModelResolver- Throws:
AppModelResolverException
-
resolveManagedModel
public ApplicationModel resolveManagedModel(ArtifactCoords appArtifact, Collection<Dependency> directDeps, ArtifactCoords managingProject, Set<ArtifactKey> reloadableModules) throws AppModelResolverException - Specified by:
resolveManagedModelin interfaceAppModelResolver- Throws:
AppModelResolverException
-
resolveModel
Resolve application mode for the main application module that might not have a POM file on disk.- Parameters:
module- main application module- Returns:
- resolved application model
- Throws:
AppModelResolverException- in case application model could not be resolved
-
listLaterVersions
public List<String> listLaterVersions(ArtifactCoords appArtifact, String upToVersion, boolean inclusive) throws AppModelResolverException - Specified by:
listLaterVersionsin interfaceAppModelResolver- Throws:
AppModelResolverException
-
getNextVersion
public String getNextVersion(ArtifactCoords appArtifact, String fromVersion, boolean fromVersionIncluded, String upToVersion, boolean upToVersionInclusive) throws AppModelResolverException - Specified by:
getNextVersionin interfaceAppModelResolver- Throws:
AppModelResolverException
-
getLatestVersion
public String getLatestVersion(ArtifactCoords appArtifact, String upToVersion, boolean inclusive) throws AppModelResolverException - Specified by:
getLatestVersionin interfaceAppModelResolver- Throws:
AppModelResolverException
-
getLatestVersionFromRange
public String getLatestVersionFromRange(ArtifactCoords appArtifact, String range) throws AppModelResolverException - Specified by:
getLatestVersionFromRangein interfaceAppModelResolver- Throws:
AppModelResolverException
-
resolveArtifactRepos
public List<org.eclipse.aether.repository.RemoteRepository> resolveArtifactRepos(ArtifactCoords appArtifact) throws AppModelResolverException - Throws:
AppModelResolverException
-
install
- Throws:
AppModelResolverException
-