Search Gradle plugins

Version 5.5.1 (latest)

Created 19 November 2024.

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 "5.5.1"
}

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:5.5.1")
    }
    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:5.5.1")
      }
    }
    
    apply(plugin = "com.github.gmazzo.buildconfig")
  • Applying plugins to all subprojects .