Search Gradle plugins

Version 1.1.7-SNAPSHOT

Created 15 August 2016.

A build config is a generated class holding constants set by the build script. It can be accessed within the Java or Groovy application, thus providing a way to transport information about version, project name or debug flags or a lot more info that otherwise will not be available or has to to be transported via complicated workarounds.

Add this plugin to your build using the plugins DSL:

plugins {
  id("de.fuerstenau.buildconfig") version "1.1.7-SNAPSHOT"
}

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