Class TestPluginImpl
java.lang.Object
io.micronaut.sourcegen.example.plugin.gradle.TestPlugin
io.micronaut.sourcegen.example.plugin.gradle.TestPluginImpl
- All Implemented Interfaces:
org.gradle.api.Plugin<org.gradle.api.Project>
This extends the generated plugin to make sure that the correct extension class is used.
Only this plugin is registered with gradle, not the generated one.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected TestExtension
createExtension
(org.gradle.api.Project project, org.gradle.api.artifacts.Configuration classpath) Method for creating the extension.Methods inherited from class io.micronaut.sourcegen.example.plugin.gradle.TestPlugin
apply
-
Constructor Details
-
TestPluginImpl
public TestPluginImpl()
-
-
Method Details
-
createExtension
protected TestExtension createExtension(org.gradle.api.Project project, org.gradle.api.artifacts.Configuration classpath) Description copied from class:TestPlugin
Method for creating the extension. Override it if you need to change the extension.- Overrides:
createExtension
in classTestPlugin
-