@Incubating public class LegacyJavaComponentPlugin
Plugin for compiling Java code. Applies the LanguageBasePlugin.
Base plugin for Java language support. Applies the LanguageBasePlugin.
Registers the ClassDirectoryBinarySpec element type for the BinaryContainer.
Adds a lifecycle task named classes
for each ClassDirectoryBinarySpec.
Adds a JavaCompile task for each JavaSourceSet added to a ClassDirectoryBinarySpec.
Constructor and description |
---|
LegacyJavaComponentPlugin
(Instantiator instantiator, JavaToolChain toolChain) |
Type | Name and description |
---|---|
void |
apply(Project target) |
void |
configureCompileTask(AbstractCompile compile, JavaSourceSet sourceSet, ClassDirectoryBinarySpec 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 taskGradle API 2.2-20140924021627+0000