Interface MetadataContainerConfiguration

  • All Known Implementing Classes:
    SpongePluginExtension

    public interface MetadataContainerConfiguration
    A configuration that can specify a metadata container
    • 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 in DependencyHandler.

        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()
      • 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)