Package org.gradle.api.distribution
Schnittstelle Distribution
- Alle Superschnittstellen:
Named
A distribution allows to bundle an application or a library including dependencies, sources...
-
Verschachtelte Klassen - Übersicht
Von Schnittstelle geerbte verschachtelte Klassen/Schnittstellen org.gradle.api.Named
Named.Namer -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungConfigures the contents of the distribution.The contents of the distribution.The baseName of the distribution, used in naming the distribution archives.The classifier of the distribution, used as the archive classifier in the archives of this distribution.getName()The name of this distribution.
-
Methodendetails
-
getName
String getName()The name of this distribution. -
getDistributionBaseName
The baseName of the distribution, used in naming the distribution archives.If the
getName()of this distribution is "main" this defaults to the project's name. Otherwise it is "$project.name-$this.name".- Seit:
- 6.0
-
getDistributionClassifier
The classifier of the distribution, used as the archive classifier in the archives of this distribution.By default, no classifier is added.
- Seit:
- 7.6
-
getContents
CopySpec getContents()The contents of the distribution. -
contents
Configures the contents of the distribution.Can be used to configure the contents of the distribution:
plugins { id 'distribution' } distributions { main { contents { from "src/readme" } } }The DSL inside thecontents\{}block is the same DSL used for Copy tasks.
-