File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
Original file line number Diff line number Diff line change 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-
71plugins {
8- id ' me.qoomon.git-versioning' version ' 6.4.1'
92 id ' java'
103 id ' maven-publish'
114}
@@ -26,20 +19,6 @@ dependencies {
2619
2720group = ' io.github.deblockt'
2821description = ' 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
4423repositories {
4524 mavenCentral()
You can’t perform that action at this time.
0 commit comments