Search Gradle plugins

net.raumzeitfalle.gradle.gocdversion

Allows to use GoCD pipeline environment details to be used in version numbers. Provides very simple method to create MSI/WIX compatible version numbers e.g. from Git version tag.

https://codeberg.org/Oliver-Loeffler/GocdVersionPlugin

Sources: https://github.com/Oliver-Loeffler/GocdVersionPlugin.git

Version 0.0.11 (latest)

Created 22 August 2024.

Allows to generate version numbers from Git tags and GoCD pipeline environment details. Provides closures to read environment variables of GoCD pipelines.

Add this plugin to your build using the plugins DSL:

plugins {
  id("net.raumzeitfalle.gradle.gocdversion") version "0.0.11"
}

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