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()voidapiVersion(java.lang.String version)PluginInheritableConfigurationgetGlobal()Get the global configuration that plugins may inherit from.org.gradle.api.provider.Property<java.lang.String>getLicense()License of the output artifact.ContainerLoaderConfigurationgetLoader()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()voidinjectRepositories(boolean value)protected org.gradle.api.provider.Property<SpongePlatform>platform()voidplatform(SpongePlatform platform)
-
-
-
Method Detail
-
getLicense
public org.gradle.api.provider.Property<java.lang.String> getLicense()
Description copied from interface:MetadataContainerConfigurationLicense of the output artifact.- Specified by:
getLicensein interfaceMetadataContainerConfiguration- Returns:
- the artifact license
-
getMappings
public org.gradle.api.provider.Property<java.lang.String> getMappings()
Description copied from interface:MetadataContainerConfigurationGet 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:
getMappingsin interfaceMetadataContainerConfiguration- Returns:
- the mappings used
-
getLoader
public ContainerLoaderConfiguration getLoader()
Description copied from interface:MetadataContainerConfigurationGet information about the plugin loader.- Specified by:
getLoaderin interfaceMetadataContainerConfiguration- Returns:
- the loader
-
getGlobal
public PluginInheritableConfiguration getGlobal()
Description copied from interface:MetadataContainerConfigurationGet the global configuration that plugins may inherit from.- Specified by:
getGlobalin interfaceMetadataContainerConfiguration- Returns:
- the global configuration
-
getPlugins
public org.gradle.api.NamedDomainObjectContainer<PluginConfiguration> getPlugins()
Description copied from interface:MetadataContainerConfigurationGet a container to which individual plugins can be registered.- Specified by:
getPluginsin 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)
-
-