org.gradle.api.plugins
[Java] Class JavaLanguagePlugin
java.lang.Object
org.gradle.api.plugins.JavaLanguagePlugin
- All Implemented Interfaces:
- Plugin
@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.
JavaLanguagePlugin
@Inject
public JavaLanguagePlugin(Instantiator instantiator, FileResolver fileResolver)
-
apply
public void apply(Project target)
-
configureCompileTask
public void configureCompileTask(AbstractCompile compile, JavaSourceSet sourceSet, ClassDirectoryBinary binary)
- Preconfigures the specified compile task based on the specified source set and class directory binary.
- Parameters:
compile
- the compile task to be preconfiguredsourceSet
- the source set for the compile taskbinary
- the binary for the compile task
Gradle API 1.12