Search Gradle plugins

Using the plugins DSL:

plugins {
  id("me.qoomon.git-versioning") version "4.2.1"
}

Using legacy plugin application:

buildscript {
  repositories {
    maven {
      url = uri("https://plugins.gradle.org/m2/")
    }
  }
  dependencies {
    classpath("me.qoomon:gradle-git-versioning-plugin:4.2.1")
  }
}

apply(plugin = "me.qoomon.git-versioning")

Using the plugins DSL:

plugins {
  id "me.qoomon.git-versioning" version "4.2.1"
}

Using legacy plugin application:

buildscript {
  repositories {
    maven {
      url "https://plugins.gradle.org/m2/"
    }
  }
  dependencies {
    classpath "me.qoomon:gradle-git-versioning-plugin:4.2.1"
  }
}

apply plugin: "me.qoomon.git-versioning"

Learn how to apply plugins to subprojects