Class OrePublicationImpl
- java.lang.Object
-
- org.spongepowered.gradle.ore.internal.OrePublicationImpl
-
- All Implemented Interfaces:
org.gradle.api.Named,OrePublication
public class OrePublicationImpl extends java.lang.Object implements OrePublication
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringDEFAULT_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.StringgetName()org.gradle.api.provider.Property<java.lang.String>getProjectId()The project ID to publish to.org.gradle.api.file.ConfigurableFileCollectiongetPublishArtifacts()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.
-
-
-
Field Detail
-
DEFAULT_NAME
public static final java.lang.String DEFAULT_NAME
- See Also:
- Constant Field Values
-
-
Method Detail
-
getName
@NotNull public @NotNull java.lang.String getName()
- Specified by:
getNamein interfaceorg.gradle.api.Named- Specified by:
getNamein interfaceOrePublication
-
getProjectId
public org.gradle.api.provider.Property<java.lang.String> getProjectId()
Description copied from interface:OrePublicationThe project ID to publish to.- Specified by:
getProjectIdin interfaceOrePublication- Returns:
- the project ID property
-
getCreateForumPost
public org.gradle.api.provider.Property<java.lang.Boolean> getCreateForumPost()
Description copied from interface:OrePublicationGet whether a forum post should be created for this project.Default:
true- Specified by:
getCreateForumPostin interfaceOrePublication- Returns:
- the property for creating a forum post
-
getVersionBody
public org.gradle.api.provider.Property<java.lang.String> getVersionBody()
Description copied from interface:OrePublicationGet contents to provide as the body/changelog for a published version.Default: (empty)
- Specified by:
getVersionBodyin interfaceOrePublication- Returns:
- the body property
-
getChannel
public org.gradle.api.provider.Property<java.lang.String> getChannel()
Description copied from interface:OrePublicationGet the channel to publish a release to.- Specified by:
getChannelin interfaceOrePublication- Returns:
- the release channel.
-
getPublishArtifacts
public org.gradle.api.file.ConfigurableFileCollection getPublishArtifacts()
Description copied from interface:OrePublicationGet the artifact to publish.This must evaluate to a single file.
Default: the output of the project's
jartask- Specified by:
getPublishArtifactsin interfaceOrePublication- Returns:
- the artifact collection
-
-