|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objecthudson.maven.ModuleDependency
public final class ModuleDependency
group id + artifact id + version and a flag to know if it's a plugin
ModuleName,
Serialized Form| Field Summary | |
|---|---|
String |
artifactId
|
String |
groupId
|
static String |
NONE
When a plugin dependency is specified without giving a version, the semantics of that is the latest released plugin. |
boolean |
plugin
|
static String |
UNKNOWN
For compatibility reason, this value may be used in the verion field to indicate that the version is unknown. |
String |
version
|
| Constructor Summary | |
|---|---|
ModuleDependency(org.apache.maven.model.Dependency dep)
|
|
ModuleDependency(org.apache.maven.model.Extension ext)
|
|
ModuleDependency(org.apache.maven.project.MavenProject project)
|
|
ModuleDependency(ModuleName name,
String version)
|
|
ModuleDependency(org.apache.maven.model.Plugin p)
|
|
ModuleDependency(org.apache.maven.model.ReportPlugin p)
|
|
ModuleDependency(String groupId,
String artifactId,
String version)
|
|
| Method Summary | |
|---|---|
boolean |
equals(Object o)
|
ModuleName |
getName()
|
int |
hashCode()
|
ModuleDependency |
readResolve()
Upon reading from the disk, intern strings. |
ModuleDependency |
withUnknownVersion()
Returns groupId+artifactId plus unknown version. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public final String groupId
public final String artifactId
public final String version
public boolean plugin
public static final String UNKNOWN
public static final String NONE
ModuleDependency version to become
UNKNOWN, which would match any builds of the plugin.
So we use this constant to indicate a version, and this will not match anything.
ModuleDependency(Plugin),
Constant Field Values| Constructor Detail |
|---|
public ModuleDependency(String groupId,
String artifactId,
String version)
public ModuleDependency(ModuleName name,
String version)
public ModuleDependency(org.apache.maven.model.Dependency dep)
public ModuleDependency(org.apache.maven.project.MavenProject project)
public ModuleDependency(org.apache.maven.model.Plugin p)
public ModuleDependency(org.apache.maven.model.ReportPlugin p)
public ModuleDependency(org.apache.maven.model.Extension ext)
| Method Detail |
|---|
public ModuleName getName()
public ModuleDependency withUnknownVersion()
public boolean equals(Object o)
equals in class Objectpublic int hashCode()
hashCode in class Objectpublic ModuleDependency readResolve()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||