Class AbstractScalaCompile

    • Field Detail

      • LOGGER

        protected static final Logger LOGGER
    • Method Detail

      • getScalaCompileOptions

        public BaseScalaCompileOptions getScalaCompileOptions()
        Returns the Scala compilation options.
      • getOptions

        public CompileOptions getOptions()
        Returns the Java compilation options.
      • getCompiler

        protected abstract org.gradle.language.base.internal.compile.Compiler<org.gradle.api.internal.tasks.scala.ScalaJavaJointCompileSpec> getCompiler​(org.gradle.api.internal.tasks.scala.ScalaJavaJointCompileSpec spec)
      • createSpec

        protected org.gradle.api.internal.tasks.scala.ScalaJavaJointCompileSpec createSpec()
      • configureIncrementalCompilation

        protected void configureIncrementalCompilation​(org.gradle.api.internal.tasks.scala.ScalaCompileSpec spec)
      • createOrGetGlobalAnalysisMap

        protected Map<File,​File> createOrGetGlobalAnalysisMap()
      • getEffectiveAnnotationProcessorPath

        @Incubating
        @Classpath
        public FileCollection getEffectiveAnnotationProcessorPath()
        Returns the path to use for annotation processor discovery. Returns an empty collection when no processing should be performed, for example when no annotation processors are present in the compile classpath or annotation processing has been disabled.

        You can specify this path using CompileOptions.setAnnotationProcessorPath(FileCollection) or CompileOptions.setCompilerArgs(java.util.List). When not explicitly set using one of the methods on CompileOptions, the compile classpath will be used when there are annotation processors present in the compile classpath. Otherwise this path will be empty.

        This path is always empty when annotation processing is disabled.

        Since:
        4.1