Comparable<Task>
, org.gradle.api.internal.DynamicObjectAware
, org.gradle.api.internal.IConventionAware
, org.gradle.api.internal.TaskInternal
, ExtensionAware
, Task
, PatternFilterable
, org.gradle.util.Configurable<Task>
PlatformScalaCompile
, ScalaCompile
public abstract class AbstractScalaCompile extends AbstractCompile
Task.Namer
Modifier and Type | Field | Description |
---|---|---|
protected static Logger |
LOGGER |
TASK_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() |
Deprecated.
Use
CompileOptions.getAnnotationProcessorPath() instead. |
protected 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, setTargetCompatibility
exclude, exclude, exclude, exclude, getExcludes, getIncludes, getPatternSetFactory, include, include, include, include, setExcludes, setIncludes, setSource, setSource, source
conventionMapping, conventionMapping, getConventionMapping
newInputDirectory, newInputFile, newOutputDirectory, newOutputFile
appendParallelSafeAction, compareTo, configure, dependsOn, doFirst, doFirst, doFirst, doLast, doLast, doLast, finalizedBy, getActions, getAnt, getAsDynamicObject, getConvention, getDependsOn, getDescription, getDestroyables, getDidWork, getEnabled, getExtensions, getFinalizedBy, getGroup, getIdentityPath, getImpliesSubProjects, getInputs, getLocalState, getLogger, getLogging, getMustRunAfter, getName, getOnlyIf, getOutputs, getPath, getProject, getServices, getShouldRunAfter, getStandardOutputCapture, getState, getTaskActions, getTaskDependencies, getTaskIdentity, getTemporaryDir, getTemporaryDirFactory, getTimeout, hasProperty, hasTaskActions, injectIntoNewInstance, isEnabled, isHasCustomActions, mustRunAfter, onlyIf, onlyIf, prependParallelSafeAction, property, replaceLogger, setActions, setDependsOn, setDescription, setDidWork, setEnabled, setFinalizedBy, setGroup, setImpliesSubProjects, setMustRunAfter, setOnlyIf, setOnlyIf, setProperty, setShouldRunAfter, shouldRunAfter, toString
protected 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 AbstractCompile
protected org.gradle.api.internal.tasks.scala.ScalaJavaJointCompileSpec createSpec()
@Deprecated @Internal @Nullable public FileCollection getEffectiveAnnotationProcessorPath()
CompileOptions.getAnnotationProcessorPath()
instead.You can specify this path using CompileOptions.setAnnotationProcessorPath(FileCollection)
.
This path is always empty when annotation processing is disabled.
@PathSensitive(NAME_ONLY) public FileTree getSource()
The PathSensitivity
for the sources is configured to be PathSensitivity.ABSOLUTE
.
If your sources are less strict, please change it accordingly by overriding this method in your subclass.
getSource
in class SourceTask
@Incubating @Input protected 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()