@Incubating public class GradlePluginDevelopmentExtension extends Object
org.gradle.plugin.devel.plugins.JavaGradlePluginPlugin.
Below is a full configuration example. Since all properties have sensible defaults, typically only selected properties will be configured.
apply plugin: "java-gradle-plugin"
gradlePlugin {
pluginSourceSet project.sourceSets.customMain
testSourceSets project.sourceSets.functionalTest
}
org.gradle.plugin.devel.plugins.JavaGradlePluginPlugin| Constructor and Description |
|---|
GradlePluginDevelopmentExtension(SourceSet pluginSourceSet,
SourceSet testSourceSet) |
GradlePluginDevelopmentExtension(SourceSet pluginSourceSet,
SourceSet[] testSourceSets) |
| Modifier and Type | Method and Description |
|---|---|
SourceSet |
getPluginSourceSet()
Returns the source set that compiles the code under test.
|
Set<SourceSet> |
getTestSourceSets()
Returns the the source sets executing the functional tests with TestKit.
|
void |
pluginSourceSet(SourceSet pluginSourceSet)
Provides the source set that compiles the code under test.
|
void |
testSourceSets(SourceSet... testSourceSets)
Provides the source sets executing the functional tests with TestKit.
|
public GradlePluginDevelopmentExtension(SourceSet pluginSourceSet, SourceSet testSourceSet)
public void pluginSourceSet(SourceSet pluginSourceSet)
pluginSourceSet - the plugin source setpublic void testSourceSets(SourceSet... testSourceSets)
Calling this method multiple times with different source sets is not additive.
testSourceSets - the test source setspublic SourceSet getPluginSourceSet()
project.sourceSets.main.