类 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 enum 
    Determines whether to publish the artifact immediately, or to hold it back behind Publish button in the Sonatype Central Portal panel.
  • 构造器概要

    构造器
    构造器
    说明
     
  • 方法概要

    修饰符和类型
    方法
    说明
    void
    configurePom(org.gradle.api.publish.maven.MavenPom pom)
     
    void
    configureVersionMapping(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 :jar task that will be used for generating the base .jar file (bundle file 2/4).
    abstract org.gradle.api.provider.Property<org.gradle.api.Task>
    The :javadoc task that will be used for generating the ...-javadoc.jar file (bundle file 3/4).
    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<String>
    The password to use when publishing.
    org.gradle.api.reflect.TypeOf<?>
     
    abstract org.gradle.api.provider.Property<BaseCentralPortalExtension.PublishingType>
    Sets the BaseCentralPortalExtension.PublishingType for the current publication.
    abstract org.gradle.api.provider.Property<org.gradle.api.Task>
    The :sourcesJar task that will be used for generating the ...-sources.jar file (bundle file 4/4).
    abstract org.gradle.api.provider.Property<String>
    The user token to use when publishing.
    void
    pom(org.gradle.api.Action<? super org.gradle.api.publish.maven.MavenPom> configure)
     
    void
    versionMapping(org.gradle.api.Action<? super org.gradle.api.publish.VersionMappingStrategy> configure)
     

    从类继承的方法 java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 构造器详细资料

    • 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

      @Optional public abstract org.gradle.api.provider.Property<String> getUsername()
      The user token to use when publishing. Consider using gradle.properties instead with the centralPortal.username property.
      返回:
      Sonatype username
      另请参阅:
    • getPassword

      @Optional public abstract org.gradle.api.provider.Property<String> getPassword()
      The password to use when publishing. Consider using gradle.properties instead with the centralPortal.password property.
      返回:
      Sonatype password
      另请参阅:
    • getPublishingType

      @Optional public abstract org.gradle.api.provider.Property<BaseCentralPortalExtension.PublishingType> getPublishingType()
      返回:
      PublishingType
    • getName

      @Optional public 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. When not specified, rootProject.name will be used.
      返回:
      pom file name attr
    • getArtifactId

      @Optional public abstract org.gradle.api.provider.Property<String> getArtifactId()
      Grabs the name that will be used throughout the Central Portal plugin, e.g. bundle name, artifactId, etc. When not specified, name will be used.
      返回:
      pom file ArtifactId attr
    • getJarTask

      @Optional public abstract org.gradle.api.provider.Property<org.gradle.api.Task> getJarTask()
      The :jar task that will be used for generating the base .jar file (bundle file 2/4).
      返回:
      jarTask
    • getJavadocJarTask

      @Optional public abstract org.gradle.api.provider.Property<org.gradle.api.Task> getJavadocJarTask()
      The :javadoc task that will be used for generating the ...-javadoc.jar file (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 :sourcesJar task that will be used for generating the ...-sources.jar file (bundle file 4/4). Primarily used for Closed-source publications (when you want your sources to be empty).
      返回:
      JavaSourcesTask