Using the plugins DSL:
plugins {
id("com.dmdirc.git-version") version "1.0"
}
Using legacy plugin application:
buildscript {
repositories {
maven {
url = uri("https://plugins.gradle.org/m2/")
}
}
dependencies {
classpath("com.dmdirc:git-version:1.0")
}
}
apply(plugin = "com.dmdirc.git-version")
Using the plugins DSL:
plugins {
id "com.dmdirc.git-version" version "1.0"
}
Using legacy plugin application:
buildscript {
repositories {
maven {
url "https://plugins.gradle.org/m2/"
}
}
dependencies {
classpath "com.dmdirc:git-version:1.0"
}
}
apply plugin: "com.dmdirc.git-version"