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 org.gradle.language.jvm.plugins.JvmLanguagePlugin.
Adds a JavaCompile task for each JavaSourceSet added to a org.gradle.language.jvm.ClassDirectoryBinary.
Registers the JavaSourceSet element type for each org.gradle.language.base.FunctionalSourceSet added to org.gradle.language.base.ProjectSourceSet.
JavaLanguagePlugin
@Inject
public JavaLanguagePlugin(Instantiator instantiator, FileResolver fileResolver)
-
apply
public void apply(Project target)
-
configureCompileTask
public void configureCompileTask(AbstractCompile compile, JvmLanguageSourceSet 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.6-rc-1