From e15318aa10231c94c3e24064f91b41d8dc4a5ffa Mon Sep 17 00:00:00 2001 From: Tudor Timi Date: Thu, 19 Jan 2023 23:31:04 +0200 Subject: [PATCH] Switch to using `jgitver` plugin to extract version from Git This plugin supports `v` as a prefix for tags, as recommended by GitHub and removes it when computing the version. The `git-version` plugin doesn't support this, because Palantir is opposed to the prefix. Whether using the `v` prefix or not is a good idea is unclear. In any case we started with this scheme, so unless we have a good reason to deviate we should stick with it. --- build.gradle.kts | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/build.gradle.kts b/build.gradle.kts index 7d809f9..13d54b4 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -3,7 +3,7 @@ plugins { id("groovy") id("maven-publish") id("com.gradle.plugin-publish") version "0.20.0" - id("com.palantir.git-version") version "0.13.0" + id("fr.brouillard.oss.gradle.jgitver") version "0.9.1" } pluginBundle { @@ -16,9 +16,6 @@ apply(from = "$rootDir/gradle/functional-test.gradle") group = "com.verificationgentleman.gradle" -val gitVersion: groovy.lang.Closure by extra -version = gitVersion() - gradlePlugin { plugins { create("systemverilog") {