Skip to content

Commit 161e98b

Browse files
committed
ci: remove git versioning plugin
1 parent 0cfb4cb commit 161e98b

2 files changed

Lines changed: 2 additions & 23 deletions

File tree

.github/workflows/release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,10 +44,10 @@ jobs:
4444
run: echo "tag=${{ inputs.version || steps.auto.outputs.new_tag }}" >> $GITHUB_OUTPUT
4545

4646
- name: Build with Gradle
47-
run: ./gradlew build
47+
run: ./gradlew build -Pversion=${{ steps.release.outputs.tag }}
4848

4949
- name: Publish to staging
50-
run: ./gradlew publishAllPublicationsToStagingRepository
50+
run: ./gradlew publishAllPublicationsToStagingRepository -Pversion=${{ steps.release.outputs.tag }}
5151

5252
- name: Deploy with JReleaser
5353
uses: jreleaser/release-action@v2

build.gradle

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,4 @@
1-
/*
2-
* This file was generated by the Gradle 'init' task.
3-
*
4-
* This project uses @Incubating APIs which are subject to change.
5-
*/
6-
71
plugins {
8-
id 'me.qoomon.git-versioning' version '6.4.1'
92
id 'java'
103
id 'maven-publish'
114
}
@@ -26,20 +19,6 @@ dependencies {
2619

2720
group = 'io.github.deblockt'
2821
description = 'json-diff'
29-
gitVersioning.apply {
30-
refs {
31-
branch('.+') {
32-
version = '${ref}-SNAPSHOT'
33-
}
34-
tag('(?<version>.*)') {
35-
version = '${ref.version}'
36-
}
37-
}
38-
39-
rev {
40-
version = '${commit}'
41-
}
42-
}
4322

4423
repositories {
4524
mavenCentral()

0 commit comments

Comments
 (0)