Package org.spongepowered.gradle.plugin
Class SpongePluginExtension
- java.lang.Object
-
- org.spongepowered.gradle.plugin.SpongePluginExtension
-
- All Implemented Interfaces:
MetadataContainerConfiguration
public class SpongePluginExtension extends java.lang.Object implements MetadataContainerConfiguration
-
-
Constructor Summary
Constructors Constructor Description SpongePluginExtension(org.gradle.api.model.ObjectFactory factory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected org.gradle.api.provider.Property<java.lang.String>
apiVersion()
void
apiVersion(java.lang.String version)
PluginInheritableConfiguration
getGlobal()
Get the global configuration that plugins may inherit from.org.gradle.api.provider.Property<java.lang.String>
getLicense()
License of the output artifact.ContainerLoaderConfiguration
getLoader()
Get information about the plugin loader.org.gradle.api.provider.Property<java.lang.String>
getMappings()
Get the mappings notation, as described inDependencyHandler
.org.gradle.api.NamedDomainObjectContainer<PluginConfiguration>
getPlugins()
Get a container to which individual plugins can be registered.org.gradle.api.provider.Property<java.lang.Boolean>
injectRepositories()
void
injectRepositories(boolean value)
protected org.gradle.api.provider.Property<SpongePlatform>
platform()
void
platform(SpongePlatform platform)
-
-
-
Method Detail
-
getLicense
public org.gradle.api.provider.Property<java.lang.String> getLicense()
Description copied from interface:MetadataContainerConfiguration
License of the output artifact.- Specified by:
getLicense
in interfaceMetadataContainerConfiguration
- Returns:
- the artifact license
-
getMappings
public org.gradle.api.provider.Property<java.lang.String> getMappings()
Description copied from interface:MetadataContainerConfiguration
Get the mappings notation, as described inDependencyHandler
.This indicates the Minecraft mappings the mod will be compiled into for distribution. Handling of this attribute is runtime-dependent.
- Specified by:
getMappings
in interfaceMetadataContainerConfiguration
- Returns:
- the mappings used
-
getLoader
public ContainerLoaderConfiguration getLoader()
Description copied from interface:MetadataContainerConfiguration
Get information about the plugin loader.- Specified by:
getLoader
in interfaceMetadataContainerConfiguration
- Returns:
- the loader
-
getGlobal
public PluginInheritableConfiguration getGlobal()
Description copied from interface:MetadataContainerConfiguration
Get the global configuration that plugins may inherit from.- Specified by:
getGlobal
in interfaceMetadataContainerConfiguration
- Returns:
- the global configuration
-
getPlugins
public org.gradle.api.NamedDomainObjectContainer<PluginConfiguration> getPlugins()
Description copied from interface:MetadataContainerConfiguration
Get a container to which individual plugins can be registered.- Specified by:
getPlugins
in interfaceMetadataContainerConfiguration
- Returns:
- the plugin container
-
platform
protected org.gradle.api.provider.Property<SpongePlatform> platform()
-
platform
public void platform(SpongePlatform platform)
-
apiVersion
protected org.gradle.api.provider.Property<java.lang.String> apiVersion()
-
apiVersion
public void apiVersion(java.lang.String version)
-
injectRepositories
public org.gradle.api.provider.Property<java.lang.Boolean> injectRepositories()
-
injectRepositories
public void injectRepositories(boolean value)
-
-