@Incubating public class JavaLanguagePlugin extends Object implements Plugin<Project>
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(org.gradle.internal.reflect.Instantiator instantiator,
org.gradle.api.internal.file.FileResolver fileResolver) |
| Modifier and Type | Method and Description |
|---|---|
void |
apply(Project target)
Apply this plugin to the given target object.
|
void |
configureCompileTask(AbstractCompile compile,
JavaSourceSet sourceSet,
ClassDirectoryBinary binary)
Preconfigures the specified compile task based on the specified source set and class directory binary.
|
@Inject
public JavaLanguagePlugin(org.gradle.internal.reflect.Instantiator instantiator,
org.gradle.api.internal.file.FileResolver fileResolver)
public void apply(Project target)
Pluginpublic void configureCompileTask(AbstractCompile compile, JavaSourceSet sourceSet, ClassDirectoryBinary binary)
compile - the compile task to be preconfiguredsourceSet - the source set for the compile taskbinary - the binary for the compile task