api / org.gradle.api.publish.maven.tasks / GenerateMavenPom

GenerateMavenPom

open class GenerateMavenPom : DefaultTask

Generates a Maven module descriptor (POM) file.

Since
1.4

Constructors

<init>

GenerateMavenPom()

Functions

doGenerate

open fun doGenerate(): Unit

getDestination

open fun getDestination(): File

The file the POM will be written to.

getPom

open fun getPom(): MavenPom

The Maven POM.

setDestination

open fun setDestination(destination: File): Unit

Sets the destination the descriptor will be written to.

open fun setDestination(destination: Any): Unit

Sets the destination the descriptor will be written to. The value is resolved with org.gradle.api.Project#file(Object)

setPom

open fun setPom(pom: MavenPom): Unit