From 7eed55985e976a705f6a36f44a98f2c92f99dcf6 Mon Sep 17 00:00:00 2001 From: Alexander Zakharov Date: Wed, 20 May 2026 16:11:23 +0200 Subject: [PATCH 1/3] build: simplify 'publish' workflow --- .github/workflows/publish.yaml | 9 +++++++-- .github/workflows/publishSnapshot.yaml | 11 ----------- README.md | 3 +++ 3 files changed, 10 insertions(+), 13 deletions(-) delete mode 100644 .github/workflows/publishSnapshot.yaml diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml index c0ea71b..09716f7 100644 --- a/.github/workflows/publish.yaml +++ b/.github/workflows/publish.yaml @@ -10,12 +10,17 @@ on: - major - minor - patch - default: "patch" + snapshot: + description: "Is Snapshot" + required: false + type: boolean + default: true jobs: publish: - name: Publish Snapshot to Maven Central + name: Publish to Maven Central uses: entur/gha-maven-central/.github/workflows/gradle-publish.yml@v1 with: next_version: ${{ inputs.next_version }} + snapshot: ${{ inputs.snapshot }} secrets: inherit \ No newline at end of file diff --git a/.github/workflows/publishSnapshot.yaml b/.github/workflows/publishSnapshot.yaml deleted file mode 100644 index 829ff11..0000000 --- a/.github/workflows/publishSnapshot.yaml +++ /dev/null @@ -1,11 +0,0 @@ -name: Publish Snapshot to Sonatype -on: - workflow_dispatch: - -jobs: - publish: - name: Publish Snapshot to Maven Central - uses: entur/gha-maven-central/.github/workflows/gradle-publish.yml@v1 - with: - snapshot: true - secrets: inherit \ No newline at end of file diff --git a/README.md b/README.md index 09f5977..7c53ba4 100644 --- a/README.md +++ b/README.md @@ -150,6 +150,9 @@ Run tests: ./gradlew test ``` +Releases are done using the publish.yaml workflow. +Do not bump the version in gradle.properties manually! + ## Contributing Contributions are welcome! See [CONTRIBUTING](/CONTRIBUTING.md) for details. From de263134ac33a52746ce24080f75f9b47a273ac9 Mon Sep 17 00:00:00 2001 From: Alexander Zakharov Date: Tue, 19 May 2026 14:24:16 +0200 Subject: [PATCH 2/3] build: upgrade to latest version of 'jreleaser' plugin --- build.gradle | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build.gradle b/build.gradle index d8ccdc5..c5737c9 100644 --- a/build.gradle +++ b/build.gradle @@ -1,6 +1,6 @@ plugins { id 'base' - id 'org.jreleaser' version "1.21.0" + id 'org.jreleaser' version "1.24.0" id 'com.github.ben-manes.versions' version '0.53.0' apply false id "com.github.spotbugs" version "6.4.5" apply false id 'com.diffplug.spotless' version "8.1.0" apply false From 0f9ac083eb61fbc1492ce91cb13b8bb1c36841ee Mon Sep 17 00:00:00 2001 From: Alexander Zakharov Date: Wed, 20 May 2026 13:29:27 +0200 Subject: [PATCH 3/3] build: pin 'org.eclipse.jgit:org.eclipse.jgit' version --- build.gradle | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/build.gradle b/build.gradle index c5737c9..1c50cc3 100644 --- a/build.gradle +++ b/build.gradle @@ -1,3 +1,12 @@ +buildscript { + configurations.classpath { + resolutionStrategy { + // Fix https://github.com/jreleaser/jreleaser/issues/1643 + force 'org.eclipse.jgit:org.eclipse.jgit:5.13.0.202109080827-r' + } + } +} + plugins { id 'base' id 'org.jreleaser' version "1.24.0"