Skip to content

Commit dee7f04

Browse files
committed
Update Gradle to v9.5.0
1 parent be1f0ab commit dee7f04

6 files changed

Lines changed: 30 additions & 24 deletions

File tree

.github/workflows/actions.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ jobs:
1717
- uses: actions/checkout@v6
1818
with:
1919
fetch-depth: 0
20+
fetch-tags: true
2021
- uses: actions/setup-java@v5
2122
with:
2223
distribution: oracle
@@ -25,7 +26,7 @@ jobs:
2526
- name: Setup Gradle
2627
uses: gradle/actions/setup-gradle@11d4d83c63a6ce61b32d8a9c4faddbdb04fe9917
2728
with:
28-
gradle-version: '9.4.1'
29+
gradle-version: '9.5.0'
2930
- name: Cache SonarCloud packages
3031
uses: actions/cache@v5
3132
with:
@@ -46,8 +47,8 @@ jobs:
4647
run: gradle build jacocoTestReport sonar --info
4748
- name: Compute version
4849
run: |
49-
gradle version
50-
echo "BUILD_VERSION=$(gradle version | grep Version | awk '{ print $2 }')" >> $GITHUB_ENV
50+
gradle printVersion
51+
echo "BUILD_VERSION=$(gradle printVersion -q)" >> $GITHUB_ENV
5152
- name: Login to Docker Hub
5253
env:
5354
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }}

.idea/.gitignore

Lines changed: 2 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/compiler.xml

Lines changed: 12 additions & 12 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

README.md

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -45,20 +45,22 @@ curl -w "\n" -X PUT -d 'Howdy' http://localhost:8080/greet/greeting
4545

4646
## [Semantic versioning](https://zoltanaltfatter.com/2020/04/10/semantic-versioning-with-jgitver/)
4747

48-
### Plugin [fr.brouillard.oss.gradle.jgitver](https://github.com/jgitver/gradle-jgitver-plugin)
48+
### Plugin [com.github.jmongard.git-semver-plugin](https://github.com/jmongard/Git.SemVersioning.Gradle)
4949

5050
```shell
51-
./gradlew version
51+
./gradlew printVersion
5252
```
5353

54+
### Update version
55+
5456
```shell
55-
./gradlew version | grep Version | awk '{ print $2 }'
57+
gradle releaseVersion
5658
```
5759

58-
### Update version and add git tag
60+
### Add git tag
5961

6062
```shell
61-
git tag 2026.03
63+
git tag 2026.04
6264
```
6365

6466
## Update dependencies

build.gradle

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ plugins {
88
alias(libs.plugins.ben.manes.versions)
99
alias(libs.plugins.sonarqube)
1010
alias(libs.plugins.jacocolog)
11-
alias(libs.plugins.jgitver)
11+
alias(libs.plugins.git.semver)
1212
}
1313

1414
spotbugs {
@@ -38,6 +38,8 @@ allprojects {
3838
apply plugin: 'jacoco'
3939
apply plugin: 'org.barfuin.gradle.jacocolog'
4040

41+
version = semver.version
42+
4143
idea {
4244
module {
4345
downloadJavadoc = true

gradle/libs.versions.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ sonarqube = '7.2.3.7755'
33
jacocolog = '4.0.2'
44
spotbugs = '6.5.1'
55
ben-manes-versions = '0.54.0'
6-
jgitver = '0.10.0-rc03'
6+
git-semver = '0.19.0'
77

88
jspecify = '1.0.0'
99
assertj = '3.27.7'
@@ -14,7 +14,7 @@ sonarqube = { id = 'org.sonarqube', version.ref = 'sonarqube' }
1414
jacocolog = { id = 'org.barfuin.gradle.jacocolog', version.ref = 'jacocolog' }
1515
spotbugs = { id = 'com.github.spotbugs', version.ref = 'spotbugs' }
1616
ben-manes-versions = { id = 'com.github.ben-manes.versions', version.ref = 'ben-manes-versions' }
17-
jgitver = { id = 'fr.brouillard.oss.gradle.jgitver', version.ref = 'jgitver' }
17+
git-semver = { id = 'com.github.jmongard.git-semver-plugin', version.ref = 'git-semver' }
1818

1919
[libraries]
2020
jspecify = { module = 'org.jspecify:jspecify', version.ref = 'jspecify' }

0 commit comments

Comments
 (0)