Interface MetadataContainerConfiguration
-
- All Known Implementing Classes:
SpongePluginExtension
public interface MetadataContainerConfiguration
A configuration that can specify a metadata container
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description 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.default void
global(org.gradle.api.Action<? super PluginInheritableConfiguration> action)
default void
license(java.lang.String license)
Set the license.default void
loader(org.gradle.api.Action<? super ContainerLoaderConfiguration> action)
default void
mappings(java.lang.String mappings)
Set the mappings.default void
plugin(java.lang.String name, org.gradle.api.Action<? super PluginConfiguration> action)
default void
plugins(org.gradle.api.Action<? super org.gradle.api.NamedDomainObjectContainer<PluginConfiguration>> action)
-
-
-
Method Detail
-
getLicense
@Input org.gradle.api.provider.Property<java.lang.String> getLicense()
License of the output artifact.- Returns:
- the artifact license
-
license
default void license(java.lang.String license)
Set the license.- Parameters:
license
- the new license
-
getMappings
@Optional @Input org.gradle.api.provider.Property<java.lang.String> getMappings()
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.
- Returns:
- the mappings used
-
mappings
default void mappings(java.lang.String mappings)
Set the mappings.- Parameters:
mappings
- the mappings dependency notation- See Also:
getMappings()
-
getLoader
ContainerLoaderConfiguration getLoader()
Get information about the plugin loader.- Returns:
- the loader
-
loader
default void loader(org.gradle.api.Action<? super ContainerLoaderConfiguration> action)
-
getGlobal
PluginInheritableConfiguration getGlobal()
Get the global configuration that plugins may inherit from.- Returns:
- the global configuration
-
global
default void global(org.gradle.api.Action<? super PluginInheritableConfiguration> action)
-
getPlugins
org.gradle.api.NamedDomainObjectContainer<PluginConfiguration> getPlugins()
Get a container to which individual plugins can be registered.- Returns:
- the plugin container
-
plugins
default void plugins(org.gradle.api.Action<? super org.gradle.api.NamedDomainObjectContainer<PluginConfiguration>> action)
-
plugin
default void plugin(java.lang.String name, org.gradle.api.Action<? super PluginConfiguration> action)
-
-