|
Groovy Documentation | |||||||
| FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectorg.gradle.api.plugins.JvmLanguagePlugin
@Incubating public class JvmLanguagePlugin
Base plugin for JVM language support. Applies the 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 Summary | |
JvmLanguagePlugin(Instantiator instantiator)
|
|
| Method Summary | |
|---|---|
void
|
apply(Project target)
|
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. |
| Methods inherited from class Object | |
|---|---|
| wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll |
| Constructor Detail |
|---|
@Inject public JvmLanguagePlugin(Instantiator instantiator)
| Method Detail |
|---|
public void apply(Project target)
public 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
public JvmBinaryContainer getJvmBinaryContainer()
Gradle API 1.5