Package org.gradle.plugin.devel
Class GradlePluginDevelopmentExtension
java.lang.Object
org.gradle.plugin.devel.GradlePluginDevelopmentExtension
Configuration options for the 
JavaGradlePluginPlugin.
 Below is a full configuration example. Since all properties have sensible defaults, typically only selected properties will be configured.
     plugins {
         id 'java-gradle-plugin'
     }
     sourceSets {
         functionalTest
     }
     gradlePlugin {
         testSourceSets project.sourceSets.functionalTest
         plugins {
             helloPlugin {
                 id  = 'org.example.hello'
                 implementationClass = 'org.example.HelloPlugin'
             }
         }
     }
 - Since:
- 2.13
- See Also:
- 
Constructor SummaryConstructorsConstructorDescriptionGradlePluginDevelopmentExtension(Project project, SourceSet pluginSourceSet, SourceSet testSourceSet) GradlePluginDevelopmentExtension(Project project, SourceSet pluginSourceSet, SourceSet[] testSourceSets) Deprecated.
- 
Method SummaryModifier and TypeMethodDescriptionabstract NamedDomainObjectContainer<PluginDeclaration> Returns the declared plugins.Returns the source set that compiles the code under test.Returns the source sets executing the functional tests with TestKit.Returns the property holding the URL for the plugin's VCS repository.Returns the property holding the URL for the plugin's website.booleanWhether the plugin should automatically configure the publications for the plugins.voidplugins(Action<? super NamedDomainObjectContainer<PluginDeclaration>> action) Configures the declared plugins.voidpluginSourceSet(SourceSet pluginSourceSet) Deprecated.voidsetAutomatedPublishing(boolean automatedPublishing) Configures whether the plugin should automatically configure the publications for the plugins.voidtestSourceSet(SourceSet testSourceSet) Adds some source sets to the collection which will be using TestKit.voidtestSourceSets(SourceSet... testSourceSets) Provides the source sets executing the functional tests with TestKit.
- 
Constructor Details- 
GradlePluginDevelopmentExtension
- 
GradlePluginDevelopmentExtension@Deprecated public GradlePluginDevelopmentExtension(Project project, SourceSet pluginSourceSet, SourceSet[] testSourceSets) Deprecated.
 
- 
- 
Method Details- 
pluginSourceSetDeprecated.Provides the source set that compiles the code under test.- Parameters:
- pluginSourceSet- the plugin source set
 
- 
testSourceSetAdds some source sets to the collection which will be using TestKit. Calling this method multiple times with different source sets is additive - this method will add to the existing collection of source sets.- Parameters:
- testSourceSet- the test source set to add
- Since:
- 7.4
 
- 
testSourceSetsProvides the source sets executing the functional tests with TestKit.Calling this method multiple times with different source sets is NOT additive. Calling this method will overwrite any existing test source sets with the provided arguments. - Parameters:
- testSourceSets- the test source sets
 
- 
getPluginSourceSetReturns the source set that compiles the code under test. Defaults toproject.sourceSets.main.- Returns:
- the plugin source set
 
- 
getTestSourceSetsReturns the source sets executing the functional tests with TestKit. Defaults toproject.sourceSets.test.- Returns:
- the test source sets
 
- 
getWebsiteReturns the property holding the URL for the plugin's website.- Since:
- 7.6
 
- 
getVcsUrlReturns the property holding the URL for the plugin's VCS repository.- Since:
- 7.6
 
- 
getPluginsReturns the declared plugins.- Returns:
- the declared plugins, never null
 
- 
pluginsConfigures the declared plugins.- Parameters:
- action- the configuration action to invoke on the plugins
 
- 
isAutomatedPublishingpublic boolean isAutomatedPublishing()Whether the plugin should automatically configure the publications for the plugins.- Returns:
- true if publishing should be automated, false otherwise
 
- 
setAutomatedPublishingpublic void setAutomatedPublishing(boolean automatedPublishing) Configures whether the plugin should automatically configure the publications for the plugins.- Parameters:
- automatedPublishing- whether to automated publication
 
 
-