Comparable<Task>, org.gradle.api.internal.DynamicObjectAware, org.gradle.api.internal.IConventionAware, org.gradle.api.internal.TaskInternal, ExtensionAware, Task, PatternFilterable, Configurable<Task>AbstractScalaCompile, GroovyCompile, JavaCompile@DisableCachingByDefault(because="Abstract super-class, not to be instantiated directly") public abstract class AbstractCompile extends SourceTask
Task.NamerTASK_ACTION, TASK_CONSTRUCTOR_ARGS, TASK_DEPENDS_ON, TASK_DESCRIPTION, TASK_GROUP, TASK_NAME, TASK_OVERWRITE, TASK_TYPE| Constructor | Description |
|---|---|
AbstractCompile() |
| Modifier and Type | Method | Description |
|---|---|---|
FileCollection |
getClasspath() |
Returns the classpath to use to compile the source files.
|
File |
getDestinationDir() |
Deprecated.
Use
getDestinationDirectory() instead. |
DirectoryProperty |
getDestinationDirectory() |
Returns the directory property that represents the directory to generate the
.class files into. |
String |
getSourceCompatibility() |
Returns the Java language level to use to compile the source files.
|
String |
getTargetCompatibility() |
Returns the target JVM to generate the
.class files for. |
void |
setClasspath(FileCollection configuration) |
Sets the classpath to use to compile the source files.
|
void |
setDestinationDir(File destinationDir) |
Deprecated.
Use
getDestinationDirectory().set() instead. |
void |
setDestinationDir(Provider<File> destinationDir) |
Deprecated.
Use
getDestinationDirectory().set() instead. |
void |
setSourceCompatibility(String sourceCompatibility) |
Sets the Java language level to use to compile the source files.
|
void |
setTargetCompatibility(String targetCompatibility) |
Sets the target JVM to generate the
.class files for. |
exclude, exclude, exclude, exclude, getExcludes, getIncludes, getPatternSet, getPatternSetFactory, getSource, include, include, include, include, setExcludes, setIncludes, setSource, setSource, sourceconventionMapping, conventionMapping, getConventionMappingcompareTo, 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, property, setActions, setDependsOn, setDescription, setDidWork, setEnabled, setFinalizedBy, setGroup, setMustRunAfter, setOnlyIf, setOnlyIf, setProperty, setShouldRunAfter, shouldRunAfter, usesServiceappendParallelSafeAction, doNotTrackState, getAsDynamicObject, getConvention, getIdentityPath, getImpliesSubProjects, getOnlyIf, getReasonNotToTrackState, getRequiredServices, getServices, getSharedResources, getStandardOutputCapture, getTaskActions, getTaskIdentity, getTemporaryDirFactory, hasTaskActions, injectIntoNewInstance, isEnabled, isHasCustomActions, prependParallelSafeAction, setImpliesSubProjectsclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitdoNotTrackState, getConvention@Classpath public FileCollection getClasspath()
public void setClasspath(FileCollection configuration)
configuration - The classpath. Must not be null, but may be empty.@OutputDirectory public DirectoryProperty getDestinationDirectory()
.class files into.@ReplacedBy("destinationDirectory") @Deprecated public File getDestinationDir()
getDestinationDirectory() instead. This method will be removed in Gradle 8.0..class files into.@Deprecated public void setDestinationDir(File destinationDir)
getDestinationDirectory().set() instead. This method will be removed in Gradle 8.0..class files into.destinationDir - The destination directory. Must not be null.@Deprecated public void setDestinationDir(Provider<File> destinationDir)
getDestinationDirectory().set() instead. This method will be removed in Gradle 8.0..class files into.destinationDir - The destination directory. Must not be null.@Input public String getSourceCompatibility()
public void setSourceCompatibility(String sourceCompatibility)
sourceCompatibility - The source language level. Must not be null.@Input public String getTargetCompatibility()
.class files for.public void setTargetCompatibility(String targetCompatibility)
.class files for.targetCompatibility - The target JVM. Must not be null.