@Deprecated public interface MavenPom
| Modifier and Type | Field | Description |
|---|---|---|
static String |
POM_FILE_ENCODING |
Deprecated.
|
| Modifier and Type | Method | Description |
|---|---|---|
String |
getArtifactId() |
Deprecated.
Returns the artifact id for this POM.
|
ConfigurationContainer |
getConfigurations() |
Deprecated.
Returns the configuration container used for mapping configurations to Maven scopes.
|
List<?> |
getDependencies() |
Deprecated.
Returns the dependencies for this POM.
|
MavenPom |
getEffectivePom() |
Deprecated.
Returns a POM with the generated dependencies and the
whenConfigured(org.gradle.api.Action) actions applied. |
String |
getGroupId() |
Deprecated.
Returns the group id for this POM.
|
Object |
getModel() |
Deprecated.
Returns the underlying native Maven org.apache.maven.model.Model object.
|
String |
getPackaging() |
Deprecated.
Returns the packaging for this POM.
|
Conf2ScopeMappingContainer |
getScopeMappings() |
Deprecated.
Returns the scope mappings used for generating this POM.
|
String |
getVersion() |
Deprecated.
Returns the version for this POM.
|
MavenPom |
project(Closure pom) |
Deprecated.
Provides a builder for the Maven POM for adding or modifying properties of the Maven
getModel(). |
MavenPom |
project(Action<? super GroovyObject> pom) |
Deprecated.
Provides a builder for the Maven POM for adding or modifying properties of the Maven
getModel(). |
MavenPom |
setArtifactId(String artifactId) |
Deprecated.
Sets the artifact id for this POM.
|
MavenPom |
setConfigurations(ConfigurationContainer configurations) |
Deprecated.
Sets the configuration container used for mapping configurations to Maven scopes.
|
MavenPom |
setDependencies(List<?> dependencies) |
Deprecated.
Sets the dependencies for this POM.
|
MavenPom |
setGroupId(String groupId) |
Deprecated.
Sets the group id for this POM.
|
MavenPom |
setModel(Object model) |
Deprecated.
Sets the underlying native Maven org.apache.maven.model.Model object.
|
MavenPom |
setPackaging(String packaging) |
Deprecated.
Sets the packaging for this POM.
|
MavenPom |
setVersion(String version) |
Deprecated.
Sets the version for this POM.
|
MavenPom |
whenConfigured(Closure closure) |
Deprecated.
Adds a closure to be called when the POM has been configured.
|
MavenPom |
whenConfigured(Action<MavenPom> action) |
Deprecated.
Adds an action to be called when the POM has been configured.
|
MavenPom |
withXml(Closure closure) |
Deprecated.
Adds a closure to be called when the POM XML has been created.
|
MavenPom |
withXml(Action<XmlProvider> action) |
Deprecated.
Adds an action to be called when the POM XML has been created.
|
MavenPom |
writeTo(Writer writer) |
Deprecated.
Writes the
getEffectivePom() XML to a writer while applying the withXml(org.gradle.api.Action) actions. |
MavenPom |
writeTo(Object path) |
Deprecated.
Writes the
getEffectivePom() XML to a file while applying the withXml(org.gradle.api.Action) actions. |
static final String POM_FILE_ENCODING
Conf2ScopeMappingContainer getScopeMappings()
MavenPom project(Closure pom)
getModel().
The syntax is exactly the same as used by polyglot Maven. For example:
pom.project {
inceptionYear '2008'
licenses {
license {
name 'The Apache Software License, Version 2.0'
url 'http://www.apache.org/licenses/LICENSE-2.0.txt'
distribution 'repo'
}
}
}
MavenPom project(Action<? super GroovyObject> pom)
getModel().
The syntax is exactly the same as used by polyglot Maven. For example:
pom.project {
inceptionYear '2008'
licenses {
license {
name 'The Apache Software License, Version 2.0'
url 'http://www.apache.org/licenses/LICENSE-2.0.txt'
distribution 'repo'
}
}
}
String getGroupId()
Model.setGroupId(String)MavenPom setGroupId(String groupId)
Model.getGroupId()String getArtifactId()
Model.getArtifactId()MavenPom setArtifactId(String artifactId)
Model.setArtifactId(String)String getVersion()
Model.getVersion()MavenPom setVersion(String version)
Model.setVersion(String)String getPackaging()
Model.getPackaging()MavenPom setPackaging(String packaging)
Model.setPackaging(String)MavenPom setDependencies(List<?> dependencies)
ModelBase.setDependencies(java.util.List)List<?> getDependencies()
ModelBase.getDependencies()Object getModel()
project(groovy.lang.Closure).MavenPom setModel(Object model)
getModel()MavenPom writeTo(Writer writer)
getEffectivePom() XML to a writer while applying the withXml(org.gradle.api.Action) actions. Closes the supplied
Writer when finished.writer - The writer to write the POM to.MavenPom writeTo(Object path)
getEffectivePom() XML to a file while applying the withXml(org.gradle.api.Action) actions.
The path is resolved as defined by Project.files(Object...)
The file will be encoded as UTF-8.path - The path of the file to write the POM into.MavenPom whenConfigured(Closure closure)
Adds a closure to be called when the POM has been configured. The POM is passed to the closure as a parameter.
closure - The closure to execute when the POM has been configured.MavenPom whenConfigured(Action<MavenPom> action)
Adds an action to be called when the POM has been configured. The POM is passed to the action as a parameter.
action - The action to execute when the POM has been configured.MavenPom withXml(Closure closure)
Adds a closure to be called when the POM XML has been created. The XML is passed to the closure as a
parameter in form of a XmlProvider. The action can modify the XML.
closure - The closure to execute when the POM XML has been created.MavenPom withXml(Action<XmlProvider> action)
Adds an action to be called when the POM XML has been created. The XML is passed to the action as a
parameter in form of a XmlProvider. The action can modify the XML.
action - The action to execute when the POM XML has been created.ConfigurationContainer getConfigurations()
MavenPom setConfigurations(ConfigurationContainer configurations)
MavenPom getEffectivePom()
whenConfigured(org.gradle.api.Action) actions applied.