Search Gradle plugins

Add this plugin to your build using the plugins DSL:

plugins {
  id("io.freefair.git-version") version "2.1.0-rc2"
}

See also:

  • The legacy method of plugin application.
    buildscript {
      repositories {
        gradlePluginPortal()
      }
      dependencies {
        classpath("io.freefair.gradle:gradle-plugins:2.1.0-rc2")
      }
    }
    
    apply(plugin = "io.freefair.git-version")
  • Applying plugins to all subprojects .