Named.Namer| Modifier and Type | Method | Description |
|---|---|---|
CopySpec |
contents(Action<? super CopySpec> action) |
Configures the contents of the distribution.
|
CopySpec |
getContents() |
The contents of the distribution.
|
Property<java.lang.String> |
getDistributionBaseName() |
The baseName of the distribution, used in naming the distribution archives.
|
Property<java.lang.String> |
getDistributionClassifier() |
The classifier of the distribution, used as the archive classifier in the archives of this distribution.
|
java.lang.String |
getName() |
The name of this distribution.
|
java.lang.String getName()
Property<java.lang.String> getDistributionBaseName()
If the getName() of this distribution is "main" this defaults to the project's name.
Otherwise it is "$project.name-$this.name".
@Incubating Property<java.lang.String> getDistributionClassifier()
By default, no classifier is added.
CopySpec getContents()
CopySpec contents(Action<? super CopySpec> action)
Can be used to configure the contents of the distribution:
plugins {
id 'distribution'
}
distributions {
main {
contents {
from "src/readme"
}
}
}
The DSL inside the contents\{} block is the same DSL used for Copy tasks.