Class OrePublicationImpl

  • All Implemented Interfaces:
    org.gradle.api.Named, OrePublication

    public class OrePublicationImpl
    extends java.lang.Object
    implements OrePublication
    • Nested Class Summary

      • Nested classes/interfaces inherited from interface org.gradle.api.Named

        org.gradle.api.Named.Namer
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String DEFAULT_NAME  
    • Constructor Summary

      Constructors 
      Constructor Description
      OrePublicationImpl​(org.gradle.api.model.ObjectFactory objects, java.lang.String name)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      org.gradle.api.provider.Property<java.lang.String> getChannel()
      Get the channel to publish a release to.
      org.gradle.api.provider.Property<java.lang.Boolean> getCreateForumPost()
      Get whether a forum post should be created for this project.
      @NotNull java.lang.String getName()  
      org.gradle.api.provider.Property<java.lang.String> getProjectId()
      The project ID to publish to.
      org.gradle.api.file.ConfigurableFileCollection getPublishArtifacts()
      Get the artifact to publish.
      org.gradle.api.provider.Property<java.lang.String> getVersionBody()
      Get contents to provide as the body/changelog for a published version.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • OrePublicationImpl

        @Inject
        public OrePublicationImpl​(org.gradle.api.model.ObjectFactory objects,
                                  java.lang.String name)
    • Method Detail

      • getName

        @NotNull
        public @NotNull java.lang.String getName()
        Specified by:
        getName in interface org.gradle.api.Named
        Specified by:
        getName in interface OrePublication
      • getProjectId

        public org.gradle.api.provider.Property<java.lang.String> getProjectId()
        Description copied from interface: OrePublication
        The project ID to publish to.
        Specified by:
        getProjectId in interface OrePublication
        Returns:
        the project ID property
      • getCreateForumPost

        public org.gradle.api.provider.Property<java.lang.Boolean> getCreateForumPost()
        Description copied from interface: OrePublication
        Get whether a forum post should be created for this project.

        Default: true

        Specified by:
        getCreateForumPost in interface OrePublication
        Returns:
        the property for creating a forum post
      • getVersionBody

        public org.gradle.api.provider.Property<java.lang.String> getVersionBody()
        Description copied from interface: OrePublication
        Get contents to provide as the body/changelog for a published version.

        Default: (empty)

        Specified by:
        getVersionBody in interface OrePublication
        Returns:
        the body property
      • getChannel

        public org.gradle.api.provider.Property<java.lang.String> getChannel()
        Description copied from interface: OrePublication
        Get the channel to publish a release to.
        Specified by:
        getChannel in interface OrePublication
        Returns:
        the release channel.
      • getPublishArtifacts

        public org.gradle.api.file.ConfigurableFileCollection getPublishArtifacts()
        Description copied from interface: OrePublication
        Get the artifact to publish.

        This must evaluate to a single file.

        Default: the output of the project's jar task

        Specified by:
        getPublishArtifacts in interface OrePublication
        Returns:
        the artifact collection