MavenArtifact

API Documentation:MavenArtifact

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

An artifact published as part of a MavenPublication.

Properties

PropertyDescription
classifier
Incubating

The classifier used to publish the artifact file. A null value (the default) indicates that this artifact will be published without a classifier.

extension
Incubating

The extension used to publish the artifact file, never null. For an artifact without an extension, this value will be an empty String.

file
Incubating

The actual file contents to publish.

Methods

MethodDescription
builtBy(tasks)
Incubating

Registers some tasks which build this artifact.

Script blocks

No script blocks

Property details

String classifier

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

The classifier used to publish the artifact file. A null value (the default) indicates that this artifact will be published without a classifier.

String extension

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

The extension used to publish the artifact file, never null. For an artifact without an extension, this value will be an empty String.

File file (read-only)

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

The actual file contents to publish.

Method details

void builtBy(Object... tasks)

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

Registers some tasks which build this artifact.