@Incubating public class LegacyJavaComponentPlugin extends Object
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
(org.gradle.internal.reflect.Instantiator instantiator, JavaToolChain toolChain, org.gradle.api.internal.project.taskfactory.ITaskFactory taskFactory, org.gradle.platform.base.internal.toolchain.ToolResolver toolResolver) |
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 task