Class PublishOnCentralExtension
-
- All Implemented Interfaces:
public class PublishOnCentralExtensionThe extension in charge of configuring the publish-on-central plugin on the target project.
-
-
Field Summary
Fields Modifier and Type Field Description private final RepositorymavenCentralprivate final Property<String>projectLongNameprivate final Property<String>projectDescriptionprivate final Property<String>licenseNameprivate final Property<String>licenseUrlprivate final Property<String>repoOwnerprivate final Property<String>scmConnectionprivate final 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<String>getProjectDescription()A description of the project. final Property<String>getLicenseName()The project's license name. final Property<String>getLicenseUrl()The license URL connection of the project. final Property<String>getRepoOwner()For GitHub projects, the owner of the repo. final Property<String>getScmConnection()The SCM connection of the project. final Property<String>getProjectUrl()The URL of the project. final ProjectgetProject()final Unitrepository(String url, String name, Function1<Repository, 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<Repository, 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.
-
getProjectDescription
final Property<String> getProjectDescription()
A description of the project.
-
getLicenseName
final Property<String> getLicenseName()
The project's license name.
-
getLicenseUrl
final Property<String> getLicenseUrl()
The license URL connection of the project.
-
getRepoOwner
final Property<String> getRepoOwner()
For GitHub projects, the owner of the repo. Used for the default values of projectUrl and scmConnection
-
getScmConnection
final Property<String> getScmConnection()
The SCM connection of the project.
-
getProjectUrl
final Property<String> getProjectUrl()
The URL of the project.
-
getProject
final Project getProject()
-
repository
@JvmOverloads() final Unit repository(String url, String name, Function1<Repository, 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<Repository, 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.
-
-
-
-