MavenPomLicenseSpec

API Documentation:MavenPomLicenseSpec

Note: This class is incubating and may change in a future version of Gradle.

Allows to add licenses to a Maven publication.

Properties

No properties

Methods

MethodDescription
license(action)
Incubating

Creates, configures and adds a license to the publication.

Script blocks

No script blocks

Method details

void license(Action<? super MavenPomLicense> action)

Note: This method is incubating and may change in a future version of Gradle.

Creates, configures and adds a license to the publication.