Skip to content

Commit

Permalink
Switch to using jgitver plugin to extract version from Git
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
tudortimi committed Jan 19, 2023
1 parent 2745f8d commit e15318a
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand All @@ -16,9 +16,6 @@ apply(from = "$rootDir/gradle/functional-test.gradle")

group = "com.verificationgentleman.gradle"

val gitVersion: groovy.lang.Closure<String> by extra
version = gitVersion()

gradlePlugin {
plugins {
create("systemverilog") {
Expand Down

0 comments on commit e15318a

Please sign in to comment.