Class SpongeConventionExtension


  • public class SpongeConventionExtension
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      SpongeConventionExtension​(org.gradle.api.model.ObjectFactory objects, org.gradle.api.provider.ProviderFactory providers, net.kyori.indra.IndraExtension indra, org.gradle.api.provider.MapProperty<java.lang.String,​java.lang.Object> licenseProperties, org.gradle.api.plugins.JavaPluginExtension extension)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      org.gradle.api.plugins.ExtraPropertiesExtension licenseParameters()
      Get template parameters used by the license plugin for headers.
      void licenseParameters​(org.gradle.api.Action<org.gradle.api.plugins.ExtraPropertiesExtension> configureAction)
      Act on template parameters used by the license plugin for headers.
      void mitLicense()  
      void repository​(java.lang.String repositoryName)
      Set the repository used in Maven metadata.
      void repository​(java.lang.String repositoryName, org.gradle.api.Action<net.kyori.indra.api.model.ApplyTo> extraConfig)
      Set the repository used in Maven metadata.
      org.gradle.api.java.archives.Manifest sharedManifest()
      Get a manifest that will be included in all Jar tasks.
      void sharedManifest​(org.gradle.api.Action<org.gradle.api.java.archives.Manifest> configureAction)
      Configure a manifest that will be included in all Jar tasks.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • SpongeConventionExtension

        @Inject
        public SpongeConventionExtension​(org.gradle.api.model.ObjectFactory objects,
                                         org.gradle.api.provider.ProviderFactory providers,
                                         net.kyori.indra.IndraExtension indra,
                                         org.gradle.api.provider.MapProperty<java.lang.String,​java.lang.Object> licenseProperties,
                                         org.gradle.api.plugins.JavaPluginExtension extension)
    • Method Detail

      • repository

        public void repository​(java.lang.String repositoryName)
        Set the repository used in Maven metadata.
        Parameters:
        repositoryName - the target repository name
      • repository

        public void repository​(java.lang.String repositoryName,
                               org.gradle.api.Action<net.kyori.indra.api.model.ApplyTo> extraConfig)
        Set the repository used in Maven metadata.
        Parameters:
        repositoryName - the target repository name
        extraConfig - extra options to apply to the repository
      • mitLicense

        public void mitLicense()
      • licenseParameters

        public org.gradle.api.plugins.ExtraPropertiesExtension licenseParameters()
        Get template parameters used by the license plugin for headers.
        Returns:
        the parameters
      • licenseParameters

        public void licenseParameters​(org.gradle.api.Action<org.gradle.api.plugins.ExtraPropertiesExtension> configureAction)
        Act on template parameters used by the license plugin for headers.
        Parameters:
        configureAction - the action to use to configure license header properties
      • sharedManifest

        public org.gradle.api.java.archives.Manifest sharedManifest()
        Get a manifest that will be included in all Jar tasks.

        This allows applying project-wide identifying metadata.

        Returns:
        the shared manifest
      • sharedManifest

        public void sharedManifest​(org.gradle.api.Action<org.gradle.api.java.archives.Manifest> configureAction)
        Configure a manifest that will be included in all Jar tasks.

        This allows applying project-wide identifying metadata.

        Parameters:
        configureAction - action to configure with