add
Adds an artifact to the given configuration.
Return
The artifact.
Parameters
configuration Name
The name of the configuration.
artifact Notation
The artifact notation, in one of the notations described above.
abstract fun add(configurationName: String, artifactNotation: Any, @DelegatesTo(value = ConfigurablePublishArtifact::class ) configureClosure: Closure): PublishArtifact(source)
Adds an artifact to the given configuration.
Return
The artifact.
Parameters
configuration Name
The name of the configuration.
artifact Notation
The artifact notation, in one of the notations described above.
configure Closure
The closure to execute to configure the artifact.
abstract fun add(configurationName: String, artifactNotation: Any, configureAction: Action<in ConfigurablePublishArtifact>): PublishArtifact(source)
Adds an artifact to the given configuration.
Return
The artifact.
Since
3.3.
Parameters
configuration Name
The name of the configuration.
artifact Notation
The artifact notation, in one of the notations described above.
configure Action
The action to execute to configure the artifact.