类 BaseCentralPortalExtension
java.lang.Object
cn.lalaki.pub.internal.BaseCentralPortalExtension
- 所有已实现的接口:
org.gradle.api.reflect.HasPublicType
public abstract class BaseCentralPortalExtension
extends Object
implements org.gradle.api.reflect.HasPublicType
Created on yyyy-MM-dd
- 从以下版本开始:
- BaseCentralPortalExtension
-
嵌套类概要
嵌套类修饰符和类型类说明static enumDetermines whether to publish the artifact immediately, or to hold it back behind Publish button in the Sonatype Central Portal panel. -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明voidconfigurePom(org.gradle.api.publish.maven.MavenPom pom) voidconfigureVersionMapping(org.gradle.api.publish.VersionMappingStrategy vms) abstract org.gradle.api.provider.Property<String>Grabs the name that will be used throughout the Central Portal plugin, e.g. bundle name,artifactId, etc.abstract org.gradle.api.provider.Property<org.gradle.api.Task>The:jartask that will be used for generating the base.jarfile (bundle file 2/4).abstract org.gradle.api.provider.Property<org.gradle.api.Task>The:javadoctask that will be used for generating the...-javadoc.jarfile (bundle file 3/4).abstract 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.abstract org.gradle.api.provider.Property<String>The password to use when publishing.org.gradle.api.reflect.TypeOf<?>abstract org.gradle.api.provider.Property<BaseCentralPortalExtension.PublishingType>Sets theBaseCentralPortalExtension.PublishingTypefor the current publication.abstract org.gradle.api.provider.Property<org.gradle.api.Task>The:sourcesJartask that will be used for generating the...-sources.jarfile (bundle file 4/4).abstract 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) voidversionMapping(org.gradle.api.Action<? super org.gradle.api.publish.VersionMappingStrategy> configure)
-
构造器详细资料
-
BaseCentralPortalExtension
public BaseCentralPortalExtension()
-
-
方法详细资料
-
configurePom
public void configurePom(org.gradle.api.publish.maven.MavenPom pom) -
configureVersionMapping
public void configureVersionMapping(org.gradle.api.publish.VersionMappingStrategy vms) -
pom
public void pom(org.gradle.api.Action<? super org.gradle.api.publish.maven.MavenPom> configure) -
versionMapping
public void versionMapping(org.gradle.api.Action<? super org.gradle.api.publish.VersionMappingStrategy> configure) -
getPublicType
public org.gradle.api.reflect.TypeOf<?> getPublicType()- 指定者:
getPublicType在接口中org.gradle.api.reflect.HasPublicType
-
getUsername
The user token to use when publishing. Consider usinggradle.propertiesinstead with thecentralPortal.usernameproperty.- 返回:
- Sonatype username
- 另请参阅:
-
getPassword
The password to use when publishing. Consider usinggradle.propertiesinstead with thecentralPortal.passwordproperty.- 返回:
- Sonatype password
- 另请参阅:
-
getPublishingType
@Optional public abstract org.gradle.api.provider.Property<BaseCentralPortalExtension.PublishingType> getPublishingType()Sets theBaseCentralPortalExtension.PublishingTypefor the current publication. TheBaseCentralPortalExtension.PublishingType.AUTOMATICis the default.- 返回:
- PublishingType
-
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.- 返回:
- pom file name attr
-
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.- 返回:
- pom file ArtifactId attr
-
getJarTask
@Optional public abstract 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).- 返回:
- jarTask
-
getJavadocJarTask
@Optional public abstract 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).- 返回:
- javaDocTask
-
getSourcesJarTask
@Optional public abstract 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).- 返回:
- JavaSourcesTask
-