api / org.gradle.api.publish.tasks / GenerateModuleMetadata

GenerateModuleMetadata

@Incubating open class GenerateModuleMetadata : DefaultTask

Generates a Gradle metadata file to represent a published org.gradle.api.component.SoftwareComponent instance.

Since
4.3

Constructors

<init>

GenerateModuleMetadata()

Functions

getOutputFile

open fun getOutputFile(): RegularFileProperty

Returns the output file location.

getPublication

open fun getPublication(): Property<Publication>

Returns the publication to generate the metadata file for.

getPublications

open fun getPublications(): ListProperty<Publication>

Returns the publications of the current project, used in generation to connect the modules of a component together.