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>

public class TestPluginImpl extends TestPlugin
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 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 class TestPlugin