Class JavaToolsExtension


  • public class JavaToolsExtension
    extends java.lang.Object
    Root extension object for the JavaToolsPlugin.
    • Constructor Detail

      • JavaToolsExtension

        public JavaToolsExtension​(org.gradle.api.Project project)
        Constructs JavaToolsExtension.
        Parameters:
        project - the owning Project.
    • Method Detail

      • create

        public static JavaToolsExtension create​(org.gradle.api.Project project)
        Creates a new JavaToolsExtension object.

        build.gradle:

         javatools {
          ...
         }
         
        Parameters:
        project - the Project to create the extension object for.
        Returns:
        the created JavaToolsExtension object.
      • getPlatform

        public PlatformInfo getPlatform()
        Gets the Platform Info object.

        build.gradle:

         test {
          enabled = javatools.platform.swtToolkit.equals("cocoa-macos-x86_64")
          ...
         }
         
        Returns:
        the Platform Info object.
      • getGenerateI18N

        public GenerateI18N getGenerateI18N()
        Gets the generateI18N configuration object.

        build.gradle:

         javatools {
          generateI18N {
           ...
          }
         }
         
        Returns:
        the generateI18N configuration object.
      • getGithubRelease

        public GitHubRelease getGithubRelease()
        Gets the githubRelease configuration object.

        build.gradle:

         javatools {
          githubRelease {
           ...
          }
         }
         
        Returns:
        the githubRelease configuration object.
      • getNode

        public Node getNode()
        Gets the node configuration object.

        build.gradle:

         javatools {
          node {
           ...
          }
         }
         
        Returns:
        the node configuration object.
      • githubRelease

        public void githubRelease​(org.gradle.api.Action<? super GitHubRelease> configuration)
        Executes a githubRelease configuration action.
        Parameters:
        configuration - the configuration action to execute.
      • node

        public void node​(org.gradle.api.Action<? super Node> configuration)
        Executes a node configuration action.
        Parameters:
        configuration - the configuration action to execute.