@Incubating public class JavaLanguagePlugin
Plugin for compiling Java code. Applies the JvmLanguagePlugin. Adds a JavaCompile task for each JavaSourceSet added to a ClassDirectoryBinary. Registers the JavaSourceSet element type for each FunctionalSourceSet added to ProjectSourceSet.
Constructor and description |
---|
JavaLanguagePlugin
(Instantiator instantiator, FileResolver fileResolver) |
Type | Name and description |
---|---|
void |
apply(Project target) |
void |
configureCompileTask(AbstractCompile compile, JavaSourceSet sourceSet, ClassDirectoryBinary binary) Preconfigures the specified compile task based on the specified source set and class directory binary. |
Preconfigures the specified compile task based on the specified source set and class directory binary.
compile
- the compile task to be preconfiguredsourceSet
- the source set for the compile taskbinary
- the binary for the compile task