Package io.quarkus.bootstrap.resolver
Class BootstrapAppModelResolver
- java.lang.Object
-
- io.quarkus.bootstrap.resolver.BootstrapAppModelResolver
-
- All Implemented Interfaces:
AppModelResolver
public class BootstrapAppModelResolver extends Object implements AppModelResolver
- Author:
- Alexey Loubyansky
-
-
Field Summary
Fields Modifier and Type Field Description protected Consumer<String>buildTreeConsumerprotected booleandevmodeprotected MavenArtifactResolvermvnprotected booleantest
-
Constructor Summary
Constructors Constructor Description BootstrapAppModelResolver(MavenArtifactResolver mvn)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddRemoteRepositories(List<org.eclipse.aether.repository.RemoteRepository> repos)StringgetLatestVersion(ArtifactCoords appArtifact, String upToVersion, boolean inclusive)StringgetLatestVersionFromRange(ArtifactCoords appArtifact, String range)StringgetNextVersion(ArtifactCoords appArtifact, String fromVersion, boolean fromVersionIncluded, String upToVersion, boolean upToVersionInclusive)voidinstall(ArtifactCoords artifact, Path localPath)List<String>listLaterVersions(ArtifactCoords appArtifact, String upToVersion, boolean inclusive)voidrelink(ArtifactCoords artifact, Path path)ResolvedDependencyresolve(ArtifactCoords artifact)List<org.eclipse.aether.repository.RemoteRepository>resolveArtifactRepos(ArtifactCoords appArtifact)ApplicationModelresolveManagedModel(ArtifactCoords appArtifact, Collection<Dependency> directDeps, ArtifactCoords managingProject, Set<ArtifactKey> reloadableModules)ApplicationModelresolveModel(WorkspaceModule module)Resolve application mode for the main application module that might not have a POM file on disk.ApplicationModelresolveModel(ArtifactCoords appArtifact)ApplicationModelresolveModel(ArtifactCoords appArtifact, Collection<Dependency> directDeps)Collection<ResolvedDependency>resolveUserDependencies(ArtifactCoords appArtifact, Collection<Dependency> deps)voidsetBuildTreeLogger(Consumer<String> buildTreeConsumer)BootstrapAppModelResolversetCollectReloadableDependencies(boolean collectReloadableDeps)BootstrapAppModelResolversetDevMode(boolean devmode)Indicates whether application should be resolved to set up the dev mode.BootstrapAppModelResolversetTest(boolean test)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface io.quarkus.bootstrap.resolver.AppModelResolver
resolveUserDependencies
-
-
-
-
Field Detail
-
mvn
protected final MavenArtifactResolver mvn
-
devmode
protected boolean devmode
-
test
protected boolean test
-
-
Constructor Detail
-
BootstrapAppModelResolver
public BootstrapAppModelResolver(MavenArtifactResolver mvn)
-
-
Method Detail
-
setDevMode
public BootstrapAppModelResolver setDevMode(boolean devmode)
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
public BootstrapAppModelResolver setTest(boolean test)
-
setCollectReloadableDependencies
public BootstrapAppModelResolver setCollectReloadableDependencies(boolean collectReloadableDeps)
-
addRemoteRepositories
public void addRemoteRepositories(List<org.eclipse.aether.repository.RemoteRepository> repos)
-
relink
public void relink(ArtifactCoords artifact, Path path) throws AppModelResolverException
- Specified by:
relinkin interfaceAppModelResolver- Throws:
AppModelResolverException
-
resolve
public ResolvedDependency resolve(ArtifactCoords artifact) throws AppModelResolverException
- 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
public ApplicationModel resolveModel(ArtifactCoords appArtifact) throws AppModelResolverException
- 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
public ApplicationModel resolveModel(WorkspaceModule module) throws AppModelResolverException
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
public void install(ArtifactCoords artifact, Path localPath) throws AppModelResolverException
- Throws:
AppModelResolverException
-
-