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 1.0.0 (latest)

1.0.0

Created 22 June 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 "1.0.0"
}

Using legacy plugin application:

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

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

Using the plugins DSL:

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

Using legacy plugin application:

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

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

Learn how to apply plugins to subprojects