@Incubating public class JvmLanguagePlugin extends Object implements Plugin<Project>
LanguageBasePlugin.
Adds a JvmBinaryContainer named jvm to the project's BinariesContainer.
Registers the ClassDirectoryBinary element type for that container.
Adds a lifecycle task named classes for each ClassDirectoryBinary.
Adds a Copy task named processXYZResources for each ResourceSet added to a ClassDirectoryBinary.| Constructor and Description |
|---|
JvmLanguagePlugin(org.gradle.internal.reflect.Instantiator instantiator) |
| Modifier and Type | Method and Description |
|---|---|
void |
apply(Project target)
Apply this plugin to the given target object.
|
void |
configureCompileTask(AbstractCompile compile,
JvmLanguageSourceSet sourceSet,
ClassDirectoryBinary binary)
Preconfigures the specified compile task based on the specified source set and class directory binary.
|
JvmBinaryContainer |
getJvmBinaryContainer()
Returns the
binaries.jvm container that was added by this plugin to the project. |
@Inject public JvmLanguagePlugin(org.gradle.internal.reflect.Instantiator instantiator)
public void apply(Project target)
Pluginpublic JvmBinaryContainer getJvmBinaryContainer()
binaries.jvm container that was added by this plugin to the project.binaries.jvm container that was added by this plugin to the projectpublic void configureCompileTask(AbstractCompile compile, JvmLanguageSourceSet sourceSet, ClassDirectoryBinary binary)
compile - the compile task to be preconfiguredsourceSet - the source set for the compile taskbinary - the binary for the compile task