Class OreDeploymentExtensionImpl
- java.lang.Object
-
- org.spongepowered.gradle.ore.internal.OreDeploymentExtensionImpl
-
- All Implemented Interfaces:
OreDeploymentExtension
public class OreDeploymentExtensionImpl extends java.lang.Object implements OreDeploymentExtension
-
-
Constructor Summary
Constructors Constructor Description OreDeploymentExtensionImpl(org.gradle.api.model.ObjectFactory objects, org.gradle.api.provider.ProviderFactory providers)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description @NotNull org.gradle.api.provider.Property<java.lang.String>
apiKey()
Get the API key to use for authentication.@NotNull org.gradle.api.provider.Property<java.lang.String>
oreEndpoint()
The Ore host to publish to.@NotNull org.gradle.api.NamedDomainObjectContainer<OrePublication>
publications()
Get publications for this project.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.spongepowered.gradle.ore.OreDeploymentExtension
apiKey, defaultPublication, oreEndpoint, publications
-
-
-
-
Method Detail
-
oreEndpoint
@NotNull public @NotNull org.gradle.api.provider.Property<java.lang.String> oreEndpoint()
Description copied from interface:OreDeploymentExtension
The Ore host to publish to.Default:
https://ore.spongepowered.org/
- Specified by:
oreEndpoint
in interfaceOreDeploymentExtension
- Returns:
- a property supplying the ore endpoint.
-
apiKey
@NotNull public @NotNull org.gradle.api.provider.Property<java.lang.String> apiKey()
Description copied from interface:OreDeploymentExtension
Get the API key to use for authentication.This should be a v2 API key with
create_version
permissions.For security reasons, this property should be set to the value of a gradle property or environment variable rather than the literal API key.
Default: the value of the environment variable
ORE_TOKEN
.- Specified by:
apiKey
in interfaceOreDeploymentExtension
- Returns:
- the API key property
-
publications
@NotNull public @NotNull org.gradle.api.NamedDomainObjectContainer<OrePublication> publications()
Description copied from interface:OreDeploymentExtension
Get publications for this project.- Specified by:
publications
in interfaceOreDeploymentExtension
- Returns:
- publications collection
-
-