PatternFilterablePlatformScalaCompile, ScalaCompile@Incubating public abstract class AbstractScalaCompile extends AbstractCompile
Task.Namer| Modifier and Type | Field | Description |
|---|---|---|
protected static Logger |
LOGGER |
sourceTASK_ACTION, TASK_CONSTRUCTOR_ARGS, TASK_DEPENDS_ON, TASK_DESCRIPTION, TASK_GROUP, TASK_NAME, TASK_OVERWRITE, TASK_TYPE| Modifier | Constructor | Description |
|---|---|---|
protected |
AbstractScalaCompile(BaseScalaCompileOptions scalaCompileOptions) |
| Modifier and Type | Method | Description |
|---|---|---|
protected void |
compile() |
|
protected org.gradle.api.internal.tasks.scala.ScalaJavaJointCompileSpec |
createSpec() |
|
ConfigurableFileCollection |
getAnalysisFiles() |
Source of analysis mapping files for incremental Scala compilation.
|
RegularFileProperty |
getAnalysisMappingFile() |
Analysis mapping file.
|
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) |
|
FileCollection |
getEffectiveAnnotationProcessorPath() |
Returns the path to use for annotation processor discovery.
|
protected java.lang.String |
getJvmVersion() |
The Java major version of the JVM the Scala compiler is running on.
|
CompileOptions |
getOptions() |
Returns the Java compilation options.
|
BaseScalaCompileOptions |
getScalaCompileOptions() |
Returns the Scala compilation options.
|
FileTree |
getSource() |
Returns the source for this task, after the include and exclude patterns have been applied.
|
getClasspath, getDestinationDir, getSourceCompatibility, getTargetCompatibility, setClasspath, setDestinationDir, setDestinationDir, setSourceCompatibility, setTargetCompatibilityaddValidator, appendParallelSafeAction, compareTo, configure, deleteAllActions, dependsOn, dependsOnTaskDidWork, doFirst, doFirst, doFirst, doLast, doLast, doLast, execute, finalizedBy, getActions, getAnt, getAsDynamicObject, getConvention, getDependsOn, getDescription, getDestroyables, getDidWork, getEnabled, getExecuter, getExtensions, getFinalizedBy, getGroup, getIdentityPath, getImpliesSubProjects, getInputs, getLocalState, getLogger, getLogging, getMustRunAfter, getName, getOnlyIf, getOutputs, getPath, getProject, getServices, getShouldRunAfter, getStandardOutputCapture, getState, getTaskActions, getTaskDependencies, getTaskIdentity, getTemporaryDir, getTemporaryDirFactory, getValidators, hasProperty, hasTaskActions, injectIntoNewInstance, isEnabled, isHasCustomActions, leftShift, mustRunAfter, onlyIf, onlyIf, prependParallelSafeAction, property, replaceLogger, setActions, setDependsOn, setDescription, setDidWork, setEnabled, setExecuter, setFinalizedBy, setGroup, setImpliesSubProjects, setMustRunAfter, setOnlyIf, setOnlyIf, setProperty, setShouldRunAfter, shouldRunAfter, toStringconventionMapping, conventionMapping, getConventionMappingnewInputDirectory, newInputFile, newOutputDirectory, newOutputFileclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitexclude, exclude, exclude, exclude, getExcludes, getIncludes, getPatternSetFactory, include, include, include, include, setExcludes, setIncludes, setSource, setSource, sourceprotected static final Logger LOGGER
protected AbstractScalaCompile(BaseScalaCompileOptions scalaCompileOptions)
public BaseScalaCompileOptions getScalaCompileOptions()
public CompileOptions getOptions()
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)
protected void compile()
compile in class AbstractCompileprotected org.gradle.api.internal.tasks.scala.ScalaJavaJointCompileSpec createSpec()
@Incubating @Classpath public FileCollection getEffectiveAnnotationProcessorPath()
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.
@PathSensitive(NAME_ONLY) public FileTree getSource()
getSource in class SourceTask@Incubating @Input protected java.lang.String getJvmVersion()
@Internal public ConfigurableFileCollection getAnalysisFiles()
An analysis mapping file is produced by each AbstractScalaCompile task. This file contains paths to the jar containing
compiled Scala classes and the Scala compiler analysis file for that jar. The Scala compiler uses this information to perform
incremental compilation of Scala sources.
@LocalState public RegularFileProperty getAnalysisMappingFile()
getAnalysisFiles()