java.lang.Comparable<Task>
, org.gradle.api.internal.DynamicObjectAware
, org.gradle.api.internal.IConventionAware
, org.gradle.api.internal.TaskInternal
, org.gradle.api.internal.tasks.compile.HasCompileOptions
, ExtensionAware
, Task
, PatternFilterable
, Configurable<Task>
@CacheableTask public abstract class ScalaCompile extends AbstractScalaCompile
Task.Namer
LOGGER
TASK_ACTION, TASK_CONSTRUCTOR_ARGS, TASK_DEPENDS_ON, TASK_DESCRIPTION, TASK_GROUP, TASK_NAME, TASK_OVERWRITE, TASK_TYPE
Constructor | Description |
---|---|
ScalaCompile() |
Modifier and Type | Method | Description |
---|---|---|
protected void |
assertScalaClasspathIsNonEmpty() |
|
protected org.gradle.api.internal.tasks.scala.ScalaJavaJointCompileSpec |
createSpec() |
|
protected org.gradle.language.base.internal.compile.Compiler<org.gradle.api.internal.tasks.scala.ScalaJavaJointCompileSpec> |
getCompiler(org.gradle.api.internal.tasks.scala.ScalaJavaJointCompileSpec spec) |
|
FileCollection |
getScalaClasspath() |
Returns the classpath to use to load the Scala compiler.
|
ScalaCompileOptions |
getScalaCompileOptions() |
Returns the Scala compilation options.
|
FileCollection |
getScalaCompilerPlugins() |
Returns the Scala compiler plugins to use.
|
FileCollection |
getZincClasspath() |
Returns the classpath to use to load the Zinc incremental compiler.
|
void |
setCompiler(org.gradle.language.base.internal.compile.Compiler<org.gradle.api.internal.tasks.scala.ScalaJavaJointCompileSpec> compiler) |
For testing only.
|
void |
setScalaClasspath(FileCollection scalaClasspath) |
|
void |
setScalaCompilerPlugins(FileCollection scalaCompilerPlugins) |
Sets the Scala compiler plugins to use.
|
void |
setZincClasspath(FileCollection zincClasspath) |
compile, getAnalysisFiles, getAnalysisMappingFile, getDeleter, getJavaLauncher, getJavaToolchainService, getJvmVersion, getObjectFactory, getOptions, getProjectLayout, getSource, getToolchain
getClasspath, getDestinationDir, getDestinationDirectory, getSourceCompatibility, getTargetCompatibility, setClasspath, setDestinationDir, setDestinationDir, setSourceCompatibility, setTargetCompatibility
exclude, exclude, exclude, exclude, getExcludes, getIncludes, getPatternSet, getPatternSetFactory, include, include, include, include, setExcludes, setIncludes, setSource, setSource, source
conventionMapping, conventionMapping, getConventionMapping
compareTo, configure, dependsOn, doFirst, doFirst, doFirst, doLast, doLast, doLast, finalizedBy, getActions, getAnt, getDependsOn, getDescription, getDestroyables, getDidWork, getEnabled, getExtensions, getFinalizedBy, getGroup, getInputs, getLocalState, getLogger, getLogging, getMustRunAfter, getName, getOutputs, getPath, getProject, getShouldRunAfter, getState, getTaskDependencies, getTemporaryDir, getTimeout, hasProperty, mustRunAfter, onlyIf, onlyIf, onlyIf, property, setActions, setDependsOn, setDescription, setDidWork, setEnabled, setFinalizedBy, setGroup, setMustRunAfter, setOnlyIf, setOnlyIf, setOnlyIf, setProperty, setShouldRunAfter, shouldRunAfter, usesService
acceptServiceReferences, appendParallelSafeAction, doNotTrackState, getAsDynamicObject, getConvention, getIdentityPath, getImpliesSubProjects, getLifecycleDependencies, getOnlyIf, getReasonNotToTrackState, getReasonTaskIsIncompatibleWithConfigurationCache, getRequiredServices, getServices, getSharedResources, getStandardOutputCapture, getTaskActions, getTaskIdentity, getTemporaryDirFactory, hasTaskActions, injectIntoNewInstance, isCompatibleWithConfigurationCache, isEnabled, isHasCustomActions, notCompatibleWithConfigurationCache, prependParallelSafeAction, setImpliesSubProjects
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
doNotTrackState, getConvention, notCompatibleWithConfigurationCache
public ScalaCompileOptions getScalaCompileOptions()
AbstractScalaCompile
getScalaCompileOptions
in class AbstractScalaCompile
@Classpath public FileCollection getScalaClasspath()
public void setScalaClasspath(FileCollection scalaClasspath)
@Classpath public FileCollection getScalaCompilerPlugins()
public void setScalaCompilerPlugins(FileCollection scalaCompilerPlugins)
scalaCompilerPlugins
- Collection of Scala compiler plugins.protected org.gradle.api.internal.tasks.scala.ScalaJavaJointCompileSpec createSpec()
createSpec
in class AbstractScalaCompile
@Classpath public FileCollection getZincClasspath()
public void setZincClasspath(FileCollection zincClasspath)
public void setCompiler(org.gradle.language.base.internal.compile.Compiler<org.gradle.api.internal.tasks.scala.ScalaJavaJointCompileSpec> compiler)
protected org.gradle.language.base.internal.compile.Compiler<org.gradle.api.internal.tasks.scala.ScalaJavaJointCompileSpec> getCompiler(org.gradle.api.internal.tasks.scala.ScalaJavaJointCompileSpec spec)
getCompiler
in class AbstractScalaCompile
protected void assertScalaClasspathIsNonEmpty()