接口 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 :jar task that will be used for generating the base .jar file (bundle file 2/4).
    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).
    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<String>
    The password to use when publishing.
    org.gradle.api.provider.Property<PublishingType>
    Sets the PublishingType for the current publication.
    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).
    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)
    Configure POM (bundle file 1/4) with additional information, like url, licenses, developers, scm.
    void
    versionMapping(org.gradle.api.Action<? super org.gradle.api.publish.VersionMappingStrategy> configure)
  • 方法详细资料

    • getUsername

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

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

      @Optional org.gradle.api.provider.Property<PublishingType> getPublishingType()
      Sets the PublishingType for the current publication. The PublishingType.AUTOMATIC is the default.
    • getName

      @Optional 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.
    • getArtifactId

      @Optional 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.
    • getJarTask

      @Optional 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).
    • getJavadocJarTask

      @Optional 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).
    • getSourcesJarTask

      @Optional 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).
    • pom

      void pom(org.gradle.api.Action<? super org.gradle.api.publish.maven.MavenPom> configure)
      Configure POM (bundle file 1/4) with additional information, like url, 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)