-
- All Implemented Interfaces:
public class PublishOnCentralExtensionThe extension in charge of configuring the publish-on-central plugin on the target project.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classPublishOnCentralExtension.Companion
-
Field Summary
Fields Modifier and Type Field Description private final RepositorymavenCentralprivate final Property<String>projectLongNameprivate final Property<Boolean>configureMavenCentralprivate Property<String>projectDescriptionprivate Property<String>licenseNameprivate Property<String>licenseUrlprivate Property<String>scmConnectionprivate Property<String>projectUrlprivate final Projectproject
-
Constructor Summary
Constructors Constructor Description PublishOnCentralExtension(Project project)
-
Method Summary
Modifier and Type Method Description final RepositorygetMavenCentral()Easier access to the default Maven Central configuration. final Property<String>getProjectLongName()The full project name. final Property<Boolean>getConfigureMavenCentral()A property, defaulting to true, that is used to disable the default configuration for Maven Central. final Property<String>getProjectDescription()A description of the project. final UnitsetProjectDescription(Property<String> projectDescription)A description of the project. final Property<String>getLicenseName()The project's license name. final UnitsetLicenseName(Property<String> licenseName)The project's license name. final Property<String>getLicenseUrl()The license URL connection of the project. final UnitsetLicenseUrl(Property<String> licenseUrl)The license URL connection of the project. final Property<String>getScmConnection()The SCM connection of the project. final UnitsetScmConnection(Property<String> scmConnection)The SCM connection of the project. final Property<String>getProjectUrl()The URL of the project. final UnitsetProjectUrl(Property<String> projectUrl)The URL of the project. final ProjectgetProject()final Unitrepository(String url, String name, Function1<MavenRepositoryDescriptor, Unit> configurator)Utility to configure a new Maven repository as target. final Unitrepository(String url, String name)Utility to configure a new Maven repository as target. final Unitrepository(String url)Utility to configure a new Maven repository as target. final UnitmavenCentralSnapshotsRepository(String name, Function1<MavenRepositoryDescriptor, Unit> configurator)Utility to pre-configure a deployment towards the Maven Central Snapshots repository. final UnitmavenCentralSnapshotsRepository(String name)Utility to pre-configure a deployment towards the Maven Central Snapshots repository. final UnitmavenCentralSnapshotsRepository()Utility to pre-configure a deployment towards the Maven Central Snapshots repository. -
-
Method Detail
-
getMavenCentral
final Repository getMavenCentral()
Easier access to the default Maven Central configuration.
-
getProjectLongName
final Property<String> getProjectLongName()
The full project name.
-
getConfigureMavenCentral
final Property<Boolean> getConfigureMavenCentral()
A property, defaulting to true, that is used to disable the default configuration for Maven Central. To be used in case of deployment towards only targets other than Maven Central.
-
getProjectDescription
final Property<String> getProjectDescription()
A description of the project.
-
setProjectDescription
final Unit setProjectDescription(Property<String> projectDescription)
A description of the project.
-
getLicenseName
final Property<String> getLicenseName()
The project's license name.
-
setLicenseName
final Unit setLicenseName(Property<String> licenseName)
The project's license name.
-
getLicenseUrl
final Property<String> getLicenseUrl()
The license URL connection of the project.
-
setLicenseUrl
final Unit setLicenseUrl(Property<String> licenseUrl)
The license URL connection of the project.
-
getScmConnection
final Property<String> getScmConnection()
The SCM connection of the project.
-
setScmConnection
final Unit setScmConnection(Property<String> scmConnection)
The SCM connection of the project.
-
getProjectUrl
final Property<String> getProjectUrl()
The URL of the project.
-
setProjectUrl
final Unit setProjectUrl(Property<String> projectUrl)
The URL of the project.
-
getProject
final Project getProject()
-
repository
@JvmOverloads() final Unit repository(String url, String name, Function1<MavenRepositoryDescriptor, Unit> configurator)
Utility to configure a new Maven repository as target.
-
repository
@JvmOverloads() final Unit repository(String url, String name)
Utility to configure a new Maven repository as target.
-
repository
@JvmOverloads() final Unit repository(String url)
Utility to configure a new Maven repository as target.
-
mavenCentralSnapshotsRepository
@JvmOverloads() final Unit mavenCentralSnapshotsRepository(String name, Function1<MavenRepositoryDescriptor, Unit> configurator)
Utility to pre-configure a deployment towards the Maven Central Snapshots repository.
-
mavenCentralSnapshotsRepository
@JvmOverloads() final Unit mavenCentralSnapshotsRepository(String name)
Utility to pre-configure a deployment towards the Maven Central Snapshots repository.
-
mavenCentralSnapshotsRepository
@JvmOverloads() final Unit mavenCentralSnapshotsRepository()
Utility to pre-configure a deployment towards the Maven Central Snapshots repository.
-
-
-
-