Search Gradle plugins

net.devrieze.gradlecodegen

A plugin to aid with codeGeneration without using buildSrc. It provides an additional generate section to sourceSets. In this section individual files to be generated can be specified. Each sourceset has an accompanying ...generator sourceSet where the actual generator source can live.

https://github.com/pdvrieze/gradle-codegen.git

Sources: https://github.com/pdvrieze/gradle-codegen.git

Version 0.6.0 (latest)

Created 01 March 2023.

A plugin to aid with codeGeneration without using buildSrc. It provides an additional generate section to sourceSets. In this section individual files to be generated can be specified. Each sourceset has an accompanying ...generator sourceSet where the actual generator source can live. See https://github.com/pdvrieze/gradle-codegen for documentation

Add this plugin to your build using the plugins DSL:

plugins {
  id("net.devrieze.gradlecodegen") version "0.6.0"
}

See also:

  • Adding the plugin to build logic for usage in precompiled script plugins.

    See the relevant documentation for more information.

    Add this plugin as a dependency to <convention-plugins-build>/build.gradle(.kts):

    dependencies {
      implementation("net.devrieze.gradlecodegen:net.devrieze.gradlecodegen.gradle.plugin:0.6.0")
    }
    It can then be applied in the precompiled script plugin:
    plugins {
      id("net.devrieze.gradlecodegen")
    }
  • The legacy method of plugin application. See the relevant documentation for more information.
    buildscript {
      repositories {
        gradlePluginPortal()
      }
      dependencies {
        classpath("net.devrieze.gradlecodegen:net.devrieze.gradlecodegen.gradle.plugin:0.6.0")
      }
    }
    
    apply(plugin = "net.devrieze.gradlecodegen")
  • Applying plugins to all subprojects .