public class BootstrapAppModelResolver extends Object implements AppModelResolver
| Modifier and Type | Field and Description |
|---|---|
protected Consumer<String> |
buildTreeConsumer |
protected boolean |
devmode |
protected MavenArtifactResolver |
mvn |
| Constructor and Description |
|---|
BootstrapAppModelResolver(MavenArtifactResolver mvn) |
| Modifier and Type | Method and Description |
|---|---|
void |
addRemoteRepositories(List<org.eclipse.aether.repository.RemoteRepository> repos) |
String |
getLatestVersion(AppArtifact appArtifact,
String upToVersion,
boolean inclusive)
Returns the latest version for the artifact up to the version specified.
|
String |
getLatestVersionFromRange(AppArtifact appArtifact,
String range)
Resolves the latest version from the specified range.
|
String |
getNextVersion(AppArtifact appArtifact,
String fromVersion,
boolean fromVersionIncluded,
String upToVersion,
boolean upToVersionInclusive)
Returns the next version of the artifact from the specified range.
|
void |
install(AppArtifact appArtifact,
Path localPath) |
List<String> |
listLaterVersions(AppArtifact appArtifact,
String upToVersion,
boolean inclusive)
Lists versions released later than the version of the artifact up to the version
specified or all the later versions in case the up-to-version is not provided.
|
void |
relink(AppArtifact artifact,
Path path)
(Re-)links an artifact to a path.
|
Path |
resolve(AppArtifact artifact)
Resolves an artifact.
|
List<org.eclipse.aether.repository.RemoteRepository> |
resolveArtifactRepos(AppArtifact appArtifact) |
AppModel |
resolveManagedModel(AppArtifact appArtifact,
List<AppDependency> directDeps,
AppArtifact managingProject) |
AppModel |
resolveModel(AppArtifact appArtifact)
Resolve dependencies that are required at runtime, excluding test and optional dependencies.
|
AppModel |
resolveModel(AppArtifact appArtifact,
List<AppDependency> directDeps)
Resolve artifact dependencies given the specific versions of the direct dependencies
|
List<AppDependency> |
resolveUserDependencies(AppArtifact appArtifact,
List<AppDependency> deps)
Resolve application direct and transitive dependencies configured by the user,
given the specific versions of the direct dependencies.
|
void |
setBuildTreeLogger(Consumer<String> buildTreeConsumer) |
BootstrapAppModelResolver |
setDevMode(boolean devmode)
Indicates whether application should be resolved to set up the dev mode.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitresolveUserDependenciesprotected final MavenArtifactResolver mvn
protected boolean devmode
public BootstrapAppModelResolver(MavenArtifactResolver mvn)
public BootstrapAppModelResolver setDevMode(boolean devmode)
devmode - whether the resolver is going to be used to set up the dev modepublic void addRemoteRepositories(List<org.eclipse.aether.repository.RemoteRepository> repos)
public void relink(AppArtifact artifact, Path path) throws AppModelResolverException
AppModelResolverrelink in interface AppModelResolverartifact - an artifact to (re-)link to the pathpath - local path to the artifactAppModelResolverException - in case of a failurepublic Path resolve(AppArtifact artifact) throws AppModelResolverException
AppModelResolverresolve in interface AppModelResolverartifact - artifact to resolveAppModelResolverException - in case of a failurepublic List<AppDependency> resolveUserDependencies(AppArtifact appArtifact, List<AppDependency> deps) throws AppModelResolverException
AppModelResolverresolveUserDependencies in interface AppModelResolverappArtifact - application artifactdeps - some or all of the direct dependencies that should be used in place of the original onesAppModelResolverException - in case of a failurepublic AppModel resolveModel(AppArtifact appArtifact) throws AppModelResolverException
AppModelResolverresolveModel in interface AppModelResolverAppModelResolverExceptionpublic AppModel resolveModel(AppArtifact appArtifact, List<AppDependency> directDeps) throws AppModelResolverException
AppModelResolverresolveModel in interface AppModelResolverappArtifact - root artifactdirectDeps - some or all of the direct dependencies that should be used in place of the original onesAppModelResolverException - in case of a failurepublic AppModel resolveManagedModel(AppArtifact appArtifact, List<AppDependency> directDeps, AppArtifact managingProject) throws AppModelResolverException
AppModelResolverExceptionpublic List<String> listLaterVersions(AppArtifact appArtifact, String upToVersion, boolean inclusive) throws AppModelResolverException
AppModelResolverlistLaterVersions in interface AppModelResolverappArtifact - artifact to list the versions forAppModelResolverException - in case of a failurepublic String getNextVersion(AppArtifact appArtifact, String fromVersion, boolean fromVersionIncluded, String upToVersion, boolean upToVersionInclusive) throws AppModelResolverException
AppModelResolvergetNextVersion in interface AppModelResolverappArtifact - artifactfromVersion - the lowest version of the rangefromVersionIncluded - whether the specified lowest version should be included in the rangeupToVersion - the highest version of the rangeupToVersionInclusive - whether the specified highest version should be included in the rangeAppModelResolverException - in case of a failurepublic String getLatestVersion(AppArtifact appArtifact, String upToVersion, boolean inclusive) throws AppModelResolverException
AppModelResolvergetLatestVersion in interface AppModelResolverappArtifact - artifactupToVersion - max version boundaryinclusive - whether the upToVersion should be included in the range or notAppModelResolverException - in case of a failurepublic String getLatestVersionFromRange(AppArtifact appArtifact, String range) throws AppModelResolverException
AppModelResolvergetLatestVersionFromRange in interface AppModelResolverappArtifact - the artifactrange - the version rangeAppModelResolverException - in case of a failurepublic List<org.eclipse.aether.repository.RemoteRepository> resolveArtifactRepos(AppArtifact appArtifact) throws AppModelResolverException
AppModelResolverExceptionpublic void install(AppArtifact appArtifact, Path localPath) throws AppModelResolverException
AppModelResolverExceptionCopyright © 2020 JBoss by Red Hat. All rights reserved.