Search Gradle plugins

org.ajoberstar.reckon

Infer a project's version from your Git repository

https://github.com/ajoberstar/reckon

Using the plugins DSL:

plugins {
  id "org.ajoberstar.reckon" version "0.9.0"
}

Using legacy plugin application:

buildscript {
  repositories {
    maven {
      url "https://plugins.gradle.org/m2/"
    }
  }
  dependencies {
    classpath "org.ajoberstar.reckon:reckon-gradle:0.9.0"
  }
}

apply plugin: "org.ajoberstar.reckon"

Using the plugins DSL:

plugins {
  id("org.ajoberstar.reckon") version "0.9.0"
}

Using legacy plugin application:

buildscript {
  repositories {
    maven {
      url = uri("https://plugins.gradle.org/m2/")
    }
  }
  dependencies {
    classpath("org.ajoberstar.reckon:reckon-gradle:0.9.0")
  }
}

apply(plugin = "org.ajoberstar.reckon")

Learn how to apply plugins to subprojects