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.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.
-
-
-
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:
getName
in interfaceorg.gradle.api.Named
- Specified by:
getName
in interfaceOrePublication
-
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 interfaceOrePublication
- 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 interfaceOrePublication
- 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 interfaceOrePublication
- 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 interfaceOrePublication
- 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 interfaceOrePublication
- Returns:
- the artifact collection
-
-