public class Dependency extends Object
Dependency class represents a dependency to another content package.
A dependency consists of a group name, a package name and a version range.
A dependency is declared as a <dependency> element of a list
style <dependencies> element:
<dependency>
<group>theGroup</group>
<name>theName</name>
<version>1.5</version>
</dependency>
The dependency can also reference a maven project dependency, this is preferred as it yields to more robust builds.
<dependency>
<groupId>theGroup</groupId>
<artifactId>theName</artifactId>
</dependency>
The versionRange may be indicated as a single version, in which
case the version range has no upper bound and defines the minimal version
accepted. Otherwise, the version range defines a lower and upper bound of
accepted versions, where the bounds are either included using parentheses
() or excluded using brackets []
| Constructor and Description |
|---|
Dependency() |
| Modifier and Type | Method and Description |
|---|---|
PackageInfo |
getInfo()
Returns the package info or
null. |
PackageDependency |
getPackageDependency()
Returns the package dependency or
null if not resolved. |
String |
toString() |
@Nullable public PackageInfo getInfo()
null.@Nullable public PackageDependency getPackageDependency()
null if not resolved.Copyright © 2017 The Apache Software Foundation. All rights reserved.