public interface AppModelResolver
| Modifier and Type | Method and Description |
|---|---|
String |
getLatestVersion(AppArtifact artifact,
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 artifact,
String fromVersion,
boolean fromVersionIncluded,
String upToVersion,
boolean upToVersionIncluded)
Returns the next version of the artifact from the specified range.
|
List<String> |
listLaterVersions(AppArtifact artifact,
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 appArtifact,
Path localPath)
(Re-)links an artifact to a path.
|
Path |
resolve(AppArtifact artifact)
Resolves an artifact.
|
AppModel |
resolveManagedModel(AppArtifact appArtifact,
List<AppDependency> directDeps,
AppArtifact managingProject,
Set<AppArtifactKey> localProjects) |
AppModel |
resolveModel(AppArtifact artifact)
Resolve dependencies that are required at runtime, excluding test and optional dependencies.
|
AppModel |
resolveModel(AppArtifact root,
List<AppDependency> deps)
Resolve artifact dependencies given the specific versions of the direct dependencies
|
default List<AppDependency> |
resolveUserDependencies(AppArtifact artifact)
Resolve application direct and transitive dependencies configured by the user.
|
List<AppDependency> |
resolveUserDependencies(AppArtifact artifact,
List<AppDependency> deps)
Resolve application direct and transitive dependencies configured by the user,
given the specific versions of the direct dependencies.
|
void relink(AppArtifact appArtifact, Path localPath) throws AppModelResolverException
appArtifact - an artifact to (re-)link to the pathlocalPath - local path to the artifactAppModelResolverException - in case of a failurePath resolve(AppArtifact artifact) throws AppModelResolverException
artifact - artifact to resolveAppModelResolverException - in case of a failuredefault List<AppDependency> resolveUserDependencies(AppArtifact artifact) throws AppModelResolverException
artifact - application artifactAppModelResolverException - in case of a failureList<AppDependency> resolveUserDependencies(AppArtifact artifact, List<AppDependency> deps) throws AppModelResolverException
artifact - application artifactdeps - some or all of the direct dependencies that should be used in place of the original onesAppModelResolverException - in case of a failureAppModel resolveModel(AppArtifact artifact) throws AppModelResolverException
artifact - AppModelResolverExceptionAppModel resolveModel(AppArtifact root, List<AppDependency> deps) throws AppModelResolverException
root - root artifactdeps - some or all of the direct dependencies that should be used in place of the original onesAppModelResolverException - in case of a failureAppModel resolveManagedModel(AppArtifact appArtifact, List<AppDependency> directDeps, AppArtifact managingProject, Set<AppArtifactKey> localProjects) throws AppModelResolverException
AppModelResolverExceptionList<String> listLaterVersions(AppArtifact artifact, String upToVersion, boolean inclusive) throws AppModelResolverException
artifact - artifact to list the versions forAppModelResolverException - in case of a failureString getNextVersion(AppArtifact artifact, String fromVersion, boolean fromVersionIncluded, String upToVersion, boolean upToVersionIncluded) throws AppModelResolverException
artifact - artifactfromVersion - the lowest version of the rangefromVersionIncluded - whether the specified lowest version should be included in the rangeupToVersion - the highest version of the rangeupToVersionIncluded - whether the specified highest version should be included in the rangeAppModelResolverException - in case of a failureString getLatestVersion(AppArtifact artifact, String upToVersion, boolean inclusive) throws AppModelResolverException
artifact - artifactupToVersion - max version boundaryinclusive - whether the upToVersion should be included in the range or notAppModelResolverException - in case of a failureString getLatestVersionFromRange(AppArtifact appArtifact, String range) throws AppModelResolverException
appArtifact - the artifactrange - the version rangeAppModelResolverException - in case of a failureCopyright © 2020 JBoss by Red Hat. All rights reserved.