Search Gradle plugins

Version 1.7.0

Created 15 February 2020.

A plugin for generating BuildConstants for any kind of Gradle projects: Java, Kotlin, Groovy, etc. Designed for KTS scripts.

Add this plugin to your build using the plugins DSL:

plugins {
  id("com.github.gmazzo.buildconfig") version "1.7.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("com.github.gmazzo.buildconfig:com.github.gmazzo.buildconfig.gradle.plugin:1.7.0")
    }
    It can then be applied in the precompiled script plugin:
    plugins {
      id("com.github.gmazzo.buildconfig")
    }
  • The legacy method of plugin application. See the relevant documentation for more information.
    buildscript {
      repositories {
        gradlePluginPortal()
      }
      dependencies {
        classpath("com.github.gmazzo.buildconfig:com.github.gmazzo.buildconfig.gradle.plugin:1.7.0")
      }
    }
    
    apply(plugin = "com.github.gmazzo.buildconfig")
  • Applying plugins to all subprojects .