Class GroovyCompile

    • Constructor Detail

      • GroovyCompile

        public GroovyCompile()
    • Method Detail

      • getGroovyCompilerJvmVersion

        @Incubating
        @Input
        protected String getGroovyCompilerJvmVersion()
        We need to track the Java version of the JVM the Groovy compiler is running on, since the Groovy compiler produces different results depending on it. This should be replaced by a property on the Groovy toolchain as soon as we model these.
        Since:
        4.0
      • getJavaToolChain

        @Incubating
        protected JavaToolChain getJavaToolChain()
        We need to track the toolchain used by the Groovy compiler to compile Java sources.
        Since:
        4.0
      • getSource

        @PathSensitive(NAME_ONLY)
        public FileTree getSource()
        Returns the source for this task, after the include and exclude patterns have been applied. Ignores source files which do not exist.
        Overrides:
        getSource in class SourceTask
        Returns:
        The source.
      • getGroovyOptions

        public GroovyCompileOptions getGroovyOptions()
        Gets the options for the Groovy compilation. To set specific options for the nested Java compilation, use getOptions().
        Returns:
        The Groovy compile options. Never returns null.
      • getOptions

        public CompileOptions getOptions()
        Returns the options for Java compilation.
        Returns:
        The Java compile options. Never returns null.
      • getGroovyClasspath

        @Classpath
        public FileCollection getGroovyClasspath()
        Returns the classpath containing the version of Groovy to use for compilation.
        Returns:
        The classpath.
      • setGroovyClasspath

        public void setGroovyClasspath​(FileCollection groovyClasspath)
        Sets the classpath containing the version of Groovy to use for compilation.
        Parameters:
        groovyClasspath - The classpath. Must not be null.
      • getCompiler

        @Internal
        public org.gradle.language.base.internal.compile.Compiler<org.gradle.api.internal.tasks.compile.GroovyJavaJointCompileSpec> getCompiler()
      • setCompiler

        public void setCompiler​(org.gradle.language.base.internal.compile.Compiler<org.gradle.api.internal.tasks.compile.GroovyJavaJointCompileSpec> compiler)
      • getJavaToolChainFactory

        @Inject
        protected org.gradle.api.internal.tasks.JavaToolChainFactory getJavaToolChainFactory()