Search Gradle plugins

Version 0.1.1

Created 25 February 2023.

This 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.1"
}

Using legacy plugin application:

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

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

Using the plugins DSL:

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

Using legacy plugin application:

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

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

Learn how to apply plugins to subprojects