Search Gradle plugins

org.cthing.build-constants

A Gradle plugin that generates a Java source file with constants describing the build.

https://github.com/cthing/gradle-build-constants

Sources: https://github.com/cthing/gradle-build-constants

Version 2.0.0 (latest)

2.0.0

Created 26 October 2024.

A Gradle plugin that generates a Java source file with constants describing the build.

Using the plugins DSL:

plugins {
  id("org.cthing.build-constants") version "2.0.0"
}

Using legacy plugin application:

buildscript {
  repositories {
    maven {
      url = uri("https://plugins.gradle.org/m2/")
    }
  }
  dependencies {
    classpath("org.cthing:gradle-build-constants:2.0.0")
  }
}

apply(plugin = "org.cthing.build-constants")

Using the plugins DSL:

plugins {
  id "org.cthing.build-constants" version "2.0.0"
}

Using legacy plugin application:

buildscript {
  repositories {
    maven {
      url "https://plugins.gradle.org/m2/"
    }
  }
  dependencies {
    classpath "org.cthing:gradle-build-constants:2.0.0"
  }
}

apply plugin: "org.cthing.build-constants"

Learn how to apply plugins to subprojects