Search Gradle plugins

Version 0.1.2 (latest)

0.1.2

Created 26 December 2023.

The version companion plugin automatically detects the current version of the project based on git tags. The plugin also provides helper tasks for printing the detected version and a list of all detected versions.

Using the plugins DSL:

plugins {
  id("io.github.dwarfley.versioncompanion") version "0.1.2"
}

Using legacy plugin application:

buildscript {
  repositories {
    maven {
      url = uri("https://plugins.gradle.org/m2/")
    }
  }
  dependencies {
    classpath("io.github.dwarfley:gradle-version-companion:0.1.2")
  }
}

apply(plugin = "io.github.dwarfley.versioncompanion")

Using the plugins DSL:

plugins {
  id "io.github.dwarfley.versioncompanion" version "0.1.2"
}

Using legacy plugin application:

buildscript {
  repositories {
    maven {
      url "https://plugins.gradle.org/m2/"
    }
  }
  dependencies {
    classpath "io.github.dwarfley:gradle-version-companion:0.1.2"
  }
}

apply plugin: "io.github.dwarfley.versioncompanion"

Learn how to apply plugins to subprojects