接口 CentralPortalExtension
- 所有已知实现类:
DefaultCentralPortalExtension
public interface CentralPortalExtension
Configuration for the
sonatype-central-portal-publisher plugin.-
方法概要
修饰符和类型方法说明org.gradle.api.provider.Property<String>Grabs the name that will be used throughout the Central Portal plugin, e.g. bundle name,artifactId, etc.org.gradle.api.provider.Property<org.gradle.api.Task>The:jartask that will be used for generating the base.jarfile (bundle file 2/4).org.gradle.api.provider.Property<org.gradle.api.Task>The:javadoctask that will be used for generating the...-javadoc.jarfile (bundle file 3/4).org.gradle.api.provider.Property<String>getName()Grabs the name that will be used throughout the Central Portal plugin, e.g. bundle name,artifactId, etc.org.gradle.api.provider.Property<String>The password to use when publishing.org.gradle.api.provider.Property<PublishingType>Sets thePublishingTypefor the current publication.org.gradle.api.provider.Property<org.gradle.api.Task>The:sourcesJartask that will be used for generating the...-sources.jarfile (bundle file 4/4).org.gradle.api.provider.Property<String>The user token to use when publishing.voidpom(org.gradle.api.Action<? super org.gradle.api.publish.maven.MavenPom> configure) Configure POM (bundle file 1/4) with additional information, likeurl,licenses,developers,scm.voidversionMapping(org.gradle.api.Action<? super org.gradle.api.publish.VersionMappingStrategy> configure) Configure version mapping strategy.
-
方法详细资料
-
getUsername
The user token to use when publishing. Consider usinggradle.propertiesinstead with thecentralPortal.usernameproperty.- 另请参阅:
-
getPassword
The password to use when publishing. Consider usinggradle.propertiesinstead with thecentralPortal.passwordproperty.- 另请参阅:
-
getPublishingType
Sets thePublishingTypefor the current publication. ThePublishingType.AUTOMATICis the default. -
getName
Grabs the name that will be used throughout the Central Portal plugin, e.g. bundle name,artifactId, etc. When not specified,rootProject.namewill be used. -
getArtifactId
Grabs the name that will be used throughout the Central Portal plugin, e.g. bundle name,artifactId, etc. When not specified,namewill be used. -
getJarTask
@Optional org.gradle.api.provider.Property<org.gradle.api.Task> getJarTask()The:jartask that will be used for generating the base.jarfile (bundle file 2/4). -
getJavadocJarTask
@Optional org.gradle.api.provider.Property<org.gradle.api.Task> getJavadocJarTask()The:javadoctask that will be used for generating the...-javadoc.jarfile (bundle file 3/4). Primarily used for Closed-source publications (when you want your JavaDoc to be empty). -
getSourcesJarTask
@Optional org.gradle.api.provider.Property<org.gradle.api.Task> getSourcesJarTask()The:sourcesJartask that will be used for generating the...-sources.jarfile (bundle file 4/4). Primarily used for Closed-source publications (when you want your sources to be empty). -
pom
void pom(org.gradle.api.Action<? super org.gradle.api.publish.maven.MavenPom> configure) Configure POM (bundle file 1/4) with additional information, likeurl,licenses,developers,scm. Without this, the publication will most likely be rejected. -
versionMapping
void versionMapping(org.gradle.api.Action<? super org.gradle.api.publish.VersionMappingStrategy> configure) Configure version mapping strategy.
-