Search Gradle plugins

Version 5.3.5 (latest)

Created 12 January 2024.

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

Using the plugins DSL:

plugins {
  id("com.github.gmazzo.buildconfig") version "5.3.5"
}

Using legacy plugin application:

buildscript {
  repositories {
    maven {
      url = uri("https://plugins.gradle.org/m2/")
    }
  }
  dependencies {
    classpath("com.github.gmazzo.buildconfig:plugin:5.3.5")
  }
}

apply(plugin = "com.github.gmazzo.buildconfig")

Using the plugins DSL:

plugins {
  id "com.github.gmazzo.buildconfig" version "5.3.5"
}

Using legacy plugin application:

buildscript {
  repositories {
    maven {
      url "https://plugins.gradle.org/m2/"
    }
  }
  dependencies {
    classpath "com.github.gmazzo.buildconfig:plugin:5.3.5"
  }
}

apply plugin: "com.github.gmazzo.buildconfig"

Learn how to apply plugins to subprojects