Package org.spongepowered.gradle.plugin
Class SpongePluginExtension
java.lang.Object
org.spongepowered.gradle.plugin.SpongePluginExtension
- All Implemented Interfaces:
MetadataContainerConfiguration
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected org.gradle.api.provider.Property<String>voidapiVersion(String version) voidvoidgameTests(org.gradle.api.Action<? super GameTestConfiguration> action) The gametest setup, seeGameTestConfiguration; configuring it turns it on.Get the global configuration that plugins may inherit from.org.gradle.api.provider.Property<String>License of the output artifact.Get information about the plugin loader.org.gradle.api.provider.Property<String>Get the mappings notation, as described inDependencyHandler.org.gradle.api.NamedDomainObjectContainer<PluginConfiguration>Get a container to which individual plugins can be registered.org.gradle.api.provider.Property<Boolean>voidinjectRepositories(boolean value) protected org.gradle.api.provider.Property<String>voidminecraftVersion(String minecraftVersion) protected org.gradle.api.provider.Property<SpongePlatform>platform()voidplatform(SpongePlatform platform)
-
Constructor Details
-
SpongePluginExtension
@Inject public SpongePluginExtension(org.gradle.api.model.ObjectFactory factory)
-
-
Method Details
-
getLicense
Description copied from interface:MetadataContainerConfigurationLicense of the output artifact.- Specified by:
getLicensein interfaceMetadataContainerConfiguration- Returns:
- the artifact license
-
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
Description copied from interface:MetadataContainerConfigurationGet information about the plugin loader.- Specified by:
getLoaderin interfaceMetadataContainerConfiguration- Returns:
- the loader
-
getGlobal
Description copied from interface:MetadataContainerConfigurationGet the global configuration that plugins may inherit from.- Specified by:
getGlobalin interfaceMetadataContainerConfiguration- Returns:
- the global configuration
-
getPlugins
Description copied from interface:MetadataContainerConfigurationGet a container to which individual plugins can be registered.- Specified by:
getPluginsin interfaceMetadataContainerConfiguration- Returns:
- the plugin container
-
platform
-
platform
-
minecraftVersion
-
minecraftVersion
-
apiVersion
-
apiVersion
-
getGameTests
The gametest setup, seeGameTestConfiguration; configuring it turns it on. Not plugin metadata. -
gameTests
public void gameTests() -
gameTests
-
injectRepositories
-
injectRepositories
public void injectRepositories(boolean value)
-