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(AppArtifact appArtifact, String upToVersion, boolean inclusive)StringgetLatestVersionFromRange(AppArtifact appArtifact, String range)StringgetNextVersion(AppArtifact appArtifact, String fromVersion, boolean fromVersionIncluded, String upToVersion, boolean upToVersionInclusive)voidinstall(AppArtifact appArtifact, Path localPath)List<String>listLaterVersions(AppArtifact appArtifact, String upToVersion, boolean inclusive)voidrelink(AppArtifact artifact, Path path)Pathresolve(AppArtifact artifact)List<org.eclipse.aether.repository.RemoteRepository>resolveArtifactRepos(AppArtifact appArtifact)AppModelresolveManagedModel(AppArtifact appArtifact, List<AppDependency> directDeps, AppArtifact managingProject, Set<AppArtifactKey> localProjects)AppModelresolveModel(AppArtifact appArtifact)AppModelresolveModel(AppArtifact appArtifact, List<AppDependency> directDeps)List<AppDependency>resolveUserDependencies(AppArtifact appArtifact, List<AppDependency> deps)voidsetBuildTreeLogger(Consumer<String> buildTreeConsumer)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)
-
addRemoteRepositories
public void addRemoteRepositories(List<org.eclipse.aether.repository.RemoteRepository> repos)
-
relink
public void relink(AppArtifact artifact, Path path) throws AppModelResolverException
- Specified by:
relinkin interfaceAppModelResolver- Throws:
AppModelResolverException
-
resolve
public Path resolve(AppArtifact artifact) throws AppModelResolverException
- Specified by:
resolvein interfaceAppModelResolver- Throws:
AppModelResolverException
-
resolveUserDependencies
public List<AppDependency> resolveUserDependencies(AppArtifact appArtifact, List<AppDependency> deps) throws AppModelResolverException
- Specified by:
resolveUserDependenciesin interfaceAppModelResolver- Throws:
AppModelResolverException
-
resolveModel
public AppModel resolveModel(AppArtifact appArtifact) throws AppModelResolverException
- Specified by:
resolveModelin interfaceAppModelResolver- Throws:
AppModelResolverException
-
resolveModel
public AppModel resolveModel(AppArtifact appArtifact, List<AppDependency> directDeps) throws AppModelResolverException
- Specified by:
resolveModelin interfaceAppModelResolver- Throws:
AppModelResolverException
-
resolveManagedModel
public AppModel resolveManagedModel(AppArtifact appArtifact, List<AppDependency> directDeps, AppArtifact managingProject, Set<AppArtifactKey> localProjects) throws AppModelResolverException
- Specified by:
resolveManagedModelin interfaceAppModelResolver- Throws:
AppModelResolverException
-
listLaterVersions
public List<String> listLaterVersions(AppArtifact appArtifact, String upToVersion, boolean inclusive) throws AppModelResolverException
- Specified by:
listLaterVersionsin interfaceAppModelResolver- Throws:
AppModelResolverException
-
getNextVersion
public String getNextVersion(AppArtifact appArtifact, String fromVersion, boolean fromVersionIncluded, String upToVersion, boolean upToVersionInclusive) throws AppModelResolverException
- Specified by:
getNextVersionin interfaceAppModelResolver- Throws:
AppModelResolverException
-
getLatestVersion
public String getLatestVersion(AppArtifact appArtifact, String upToVersion, boolean inclusive) throws AppModelResolverException
- Specified by:
getLatestVersionin interfaceAppModelResolver- Throws:
AppModelResolverException
-
getLatestVersionFromRange
public String getLatestVersionFromRange(AppArtifact appArtifact, String range) throws AppModelResolverException
- Specified by:
getLatestVersionFromRangein interfaceAppModelResolver- Throws:
AppModelResolverException
-
resolveArtifactRepos
public List<org.eclipse.aether.repository.RemoteRepository> resolveArtifactRepos(AppArtifact appArtifact) throws AppModelResolverException
- Throws:
AppModelResolverException
-
install
public void install(AppArtifact appArtifact, Path localPath) throws AppModelResolverException
- Throws:
AppModelResolverException
-
-