gradle
8.6

# MavenPom

interface MavenPom(source)

The POM for a Maven publication.

The withXml method can be used to modify the descriptor after it has been generated according to the publication data. However, the preferred way to customize the project information to be published is to use the dedicated properties exposed by this class, e.g. getDescription. Please refer to the official POM Reference for detailed information about the individual properties.

## Functions

ciManagement
Link copied to clipboard
abstract fun ciManagement(action: Action<out Any>)
Configures the CI management for the publication represented by this POM.
contributors
Link copied to clipboard
abstract fun contributors(action: Action<out Any>)
Configures the contributors for the publication represented by this POM.
developers
Link copied to clipboard
abstract fun developers(action: Action<out Any>)
Configures the developers for the publication represented by this POM.
distributionManagement
Link copied to clipboard
abstract fun distributionManagement(action: Action<out Any>)
Configures the distribution management for the publication represented by this POM.
getDescription
Link copied to clipboard
abstract fun getDescription(): Property<String>
A short, human-readable description for the publication represented by this POM.
getInceptionYear
Link copied to clipboard
abstract fun getInceptionYear(): Property<String>
The year the project producing the publication represented by this POM was first created.
getName
Link copied to clipboard
abstract fun getName(): Property<String>
The name for the publication represented by this POM.
getPackaging
Link copied to clipboard
abstract fun getPackaging(): String
Returns the packaging (for example: jar, war) for the publication represented by this POM.
getProperties
Link copied to clipboard
abstract fun getProperties(): MapProperty<String, String>
Returns the properties for the publication represented by this POM.
getUrl
Link copied to clipboard
abstract fun getUrl(): Property<String>
The URL of the home page for the project producing the publication represented by this POM.
issueManagement
Link copied to clipboard
abstract fun issueManagement(action: Action<out Any>)
Configures the issue management for the publication represented by this POM.
licenses
Link copied to clipboard
abstract fun licenses(action: Action<out Any>)
Configures the licenses for the publication represented by this POM.
mailingLists
Link copied to clipboard
abstract fun mailingLists(action: Action<out Any>)
Configures the mailing lists for the publication represented by this POM.
organization
Link copied to clipboard
abstract fun organization(action: Action<out Any>)
Configures the organization for the publication represented by this POM.
scm
Link copied to clipboard
abstract fun scm(action: Action<out Any>)
Configures the SCM (source control management) for the publication represented by this POM.
setPackaging
Link copied to clipboard
abstract fun setPackaging(packaging: String)
Sets the packaging for the publication represented by this POM.
withXml
Link copied to clipboard
abstract fun withXml(action: Action<out Any>)
Allows configuration of the POM, after it has been generated according to the input data.