From 748e7d09ea358087cdbcb343fe27eb49468b8fc7 Mon Sep 17 00:00:00 2001 From: Tomasz Tylenda Date: Tue, 3 Feb 2026 15:04:10 +0100 Subject: [PATCH 1/3] Update Next Iteration GHA --- .github/workflows/PrepareNextIteration.yml | 31 +++++++++++++++++----- 1 file changed, 24 insertions(+), 7 deletions(-) diff --git a/.github/workflows/PrepareNextIteration.yml b/.github/workflows/PrepareNextIteration.yml index 31cf5889293..bfdea7e742f 100644 --- a/.github/workflows/PrepareNextIteration.yml +++ b/.github/workflows/PrepareNextIteration.yml @@ -4,7 +4,7 @@ on: workflow_dispatch: inputs: nextVersion: - description: Version number of the next iteration + description: Version number of the next iteration (e.g. 8.4-SNAPSHOT) required: true jobs: @@ -15,20 +15,37 @@ jobs: pull-requests: write contents: write + env: + GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} + NEXT_VERSION: ${{ inputs.nextVersion }} + steps: - name: Checkout Sources uses: actions/checkout@v4 - name: Update Version Number - env: - GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} - NEXT_VERSION: ${{ inputs.nextVersion }} + id: update-version run: | git config user.name "${GITHUB_ACTOR}" git config user.email "${GITHUB_ACTOR}@users.noreply.github.com" - git checkout -b gh-action/next-iteration + git config --global core.autocrlf input + git config --global core.safecrlf true + BRANCH="gh-action/next-iteration.${{ github.run_id }}" + git checkout -b "${BRANCH}" mvn versions:set -DgenerateBackupPoms=false -DnewVersion="${NEXT_VERSION}" git commit -m 'Prepare next development iteration' -a - git push --set-upstream origin gh-action/next-iteration - gh pr create -B master --title 'Prepare next development iteration' --body '' + git push --set-upstream origin "${BRANCH}" + echo "branch=${BRANCH}" >> $GITHUB_OUTPUT + + - name: Create Pull Request + id: create-pr + run: | + URL=$(gh pr create --draft --base master --title "Prepare next development iteration ${NEXT_VERSION}" --body '') + echo "url=${URL}" >> $GITHUB_OUTPUT + + - name: Summary + run: | + echo "Generated ${{steps.create-pr.outputs.url}}." >> $GITHUB_STEP_SUMMARY + echo "New version set to ${NEXT_VERSION}." >> $GITHUB_STEP_SUMMARY + echo "Tip: close and reopen the PR to trigger CI. " >> $GITHUB_STEP_SUMMARY From db1c84232af2c47530f85aab9b2432ba4f6bc2f5 Mon Sep 17 00:00:00 2001 From: Tomasz Tylenda Date: Thu, 5 Feb 2026 10:07:04 +0100 Subject: [PATCH 2/3] Remove unused id --- .github/workflows/PrepareNextIteration.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/PrepareNextIteration.yml b/.github/workflows/PrepareNextIteration.yml index bfdea7e742f..72614592837 100644 --- a/.github/workflows/PrepareNextIteration.yml +++ b/.github/workflows/PrepareNextIteration.yml @@ -25,7 +25,6 @@ jobs: uses: actions/checkout@v4 - name: Update Version Number - id: update-version run: | git config user.name "${GITHUB_ACTOR}" git config user.email "${GITHUB_ACTOR}@users.noreply.github.com" From f8852dc0b12bdf7dbfc08d0004a9c499d0c9781a Mon Sep 17 00:00:00 2001 From: tomasz-tylenda-sonarsource Date: Thu, 5 Feb 2026 09:08:38 +0000 Subject: [PATCH 3/3] Prepare next development iteration --- check-list/pom.xml | 2 +- docs/java-custom-rules-example/pom.xml | 2 +- docs/pom.xml | 2 +- external-reports/pom.xml | 2 +- its/autoscan/pom.xml | 2 +- its/plugin/plugins/java-extension-plugin/pom.xml | 2 +- its/plugin/plugins/pom.xml | 2 +- its/plugin/pom.xml | 2 +- its/plugin/tests/pom.xml | 2 +- its/pom.xml | 2 +- its/ruling/pom.xml | 2 +- java-checks-aws/pom.xml | 2 +- java-checks-common/pom.xml | 2 +- java-checks-test-sources/aws/pom.xml | 2 +- java-checks-test-sources/default/pom.xml | 2 +- java-checks-test-sources/java-17/pom.xml | 2 +- java-checks-test-sources/pom.xml | 2 +- java-checks-test-sources/spring-3.2/pom.xml | 2 +- java-checks-test-sources/spring-web-4.0/pom.xml | 2 +- java-checks-test-sources/test-classpath-reader/pom.xml | 2 +- java-checks-testkit/pom.xml | 2 +- java-checks/pom.xml | 2 +- java-frontend/pom.xml | 2 +- java-jsp/pom.xml | 2 +- java-surefire/pom.xml | 2 +- pom.xml | 2 +- sonar-java-plugin/pom.xml | 2 +- 27 files changed, 27 insertions(+), 27 deletions(-) diff --git a/check-list/pom.xml b/check-list/pom.xml index 69245a9359d..ed4cf9710db 100644 --- a/check-list/pom.xml +++ b/check-list/pom.xml @@ -7,7 +7,7 @@ org.sonarsource.java java - 8.24.0-SNAPSHOT + 9.13-FINAL check-list diff --git a/docs/java-custom-rules-example/pom.xml b/docs/java-custom-rules-example/pom.xml index ac705654837..e37f21c617a 100644 --- a/docs/java-custom-rules-example/pom.xml +++ b/docs/java-custom-rules-example/pom.xml @@ -4,7 +4,7 @@ org.sonarsource.java docs - 8.24.0-SNAPSHOT + 9.13-FINAL diff --git a/docs/pom.xml b/docs/pom.xml index fc0ce165fd2..51fb0b828b5 100644 --- a/docs/pom.xml +++ b/docs/pom.xml @@ -5,7 +5,7 @@ org.sonarsource.java java - 8.24.0-SNAPSHOT + 9.13-FINAL docs diff --git a/external-reports/pom.xml b/external-reports/pom.xml index 764ef24b95d..7d1780dfdff 100644 --- a/external-reports/pom.xml +++ b/external-reports/pom.xml @@ -5,7 +5,7 @@ org.sonarsource.java java - 8.24.0-SNAPSHOT + 9.13-FINAL external-reports diff --git a/its/autoscan/pom.xml b/its/autoscan/pom.xml index 6aece8f8ddb..0b7f7e1ff4b 100644 --- a/its/autoscan/pom.xml +++ b/its/autoscan/pom.xml @@ -6,7 +6,7 @@ org.sonarsource.java java-its - 8.24.0-SNAPSHOT + 9.13-FINAL it-java-autoscan diff --git a/its/plugin/plugins/java-extension-plugin/pom.xml b/its/plugin/plugins/java-extension-plugin/pom.xml index bb8b1d86b8d..bc17bd30e50 100644 --- a/its/plugin/plugins/java-extension-plugin/pom.xml +++ b/its/plugin/plugins/java-extension-plugin/pom.xml @@ -4,7 +4,7 @@ org.sonarsource.java it-java-plugin-plugins - 8.24.0-SNAPSHOT + 9.13-FINAL java-extension-plugin diff --git a/its/plugin/plugins/pom.xml b/its/plugin/plugins/pom.xml index 53453ca1e2f..c04d6a6367b 100644 --- a/its/plugin/plugins/pom.xml +++ b/its/plugin/plugins/pom.xml @@ -5,7 +5,7 @@ org.sonarsource.java it-java-plugin - 8.24.0-SNAPSHOT + 9.13-FINAL it-java-plugin-plugins diff --git a/its/plugin/pom.xml b/its/plugin/pom.xml index a0b13e1a994..d4dfd1afb89 100644 --- a/its/plugin/pom.xml +++ b/its/plugin/pom.xml @@ -5,7 +5,7 @@ org.sonarsource.java java-its - 8.24.0-SNAPSHOT + 9.13-FINAL it-java-plugin diff --git a/its/plugin/tests/pom.xml b/its/plugin/tests/pom.xml index e3d57a5c497..8df296bd9fc 100644 --- a/its/plugin/tests/pom.xml +++ b/its/plugin/tests/pom.xml @@ -5,7 +5,7 @@ org.sonarsource.java it-java-plugin - 8.24.0-SNAPSHOT + 9.13-FINAL it-java-plugin-tests diff --git a/its/pom.xml b/its/pom.xml index 37020d8ea3c..96948bff90b 100644 --- a/its/pom.xml +++ b/its/pom.xml @@ -5,7 +5,7 @@ org.sonarsource.java java - 8.24.0-SNAPSHOT + 9.13-FINAL java-its diff --git a/its/ruling/pom.xml b/its/ruling/pom.xml index cb98756d78d..9425b610822 100644 --- a/its/ruling/pom.xml +++ b/its/ruling/pom.xml @@ -5,7 +5,7 @@ org.sonarsource.java java-its - 8.24.0-SNAPSHOT + 9.13-FINAL it-java-ruling diff --git a/java-checks-aws/pom.xml b/java-checks-aws/pom.xml index 536d735f0e2..1365ae253e2 100644 --- a/java-checks-aws/pom.xml +++ b/java-checks-aws/pom.xml @@ -5,7 +5,7 @@ org.sonarsource.java java - 8.24.0-SNAPSHOT + 9.13-FINAL java-checks-aws diff --git a/java-checks-common/pom.xml b/java-checks-common/pom.xml index 940d949b13a..cf21e15d6cd 100644 --- a/java-checks-common/pom.xml +++ b/java-checks-common/pom.xml @@ -5,7 +5,7 @@ org.sonarsource.java java - 8.24.0-SNAPSHOT + 9.13-FINAL java-checks-common diff --git a/java-checks-test-sources/aws/pom.xml b/java-checks-test-sources/aws/pom.xml index 53fc552cc26..bb228cf970f 100644 --- a/java-checks-test-sources/aws/pom.xml +++ b/java-checks-test-sources/aws/pom.xml @@ -7,7 +7,7 @@ org.sonarsource.java java-checks-test-sources - 8.24.0-SNAPSHOT + 9.13-FINAL aws diff --git a/java-checks-test-sources/default/pom.xml b/java-checks-test-sources/default/pom.xml index 00d59ddbd0e..82b091351db 100644 --- a/java-checks-test-sources/default/pom.xml +++ b/java-checks-test-sources/default/pom.xml @@ -7,7 +7,7 @@ org.sonarsource.java java-checks-test-sources - 8.24.0-SNAPSHOT + 9.13-FINAL default diff --git a/java-checks-test-sources/java-17/pom.xml b/java-checks-test-sources/java-17/pom.xml index c48c50a867d..1a6992ad456 100644 --- a/java-checks-test-sources/java-17/pom.xml +++ b/java-checks-test-sources/java-17/pom.xml @@ -7,7 +7,7 @@ org.sonarsource.java java-checks-test-sources - 8.24.0-SNAPSHOT + 9.13-FINAL java-17 diff --git a/java-checks-test-sources/pom.xml b/java-checks-test-sources/pom.xml index 44427f4adcd..0886025eb7d 100644 --- a/java-checks-test-sources/pom.xml +++ b/java-checks-test-sources/pom.xml @@ -7,7 +7,7 @@ org.sonarsource.java java - 8.24.0-SNAPSHOT + 9.13-FINAL java-checks-test-sources diff --git a/java-checks-test-sources/spring-3.2/pom.xml b/java-checks-test-sources/spring-3.2/pom.xml index 23601dbf024..d58f813fa55 100644 --- a/java-checks-test-sources/spring-3.2/pom.xml +++ b/java-checks-test-sources/spring-3.2/pom.xml @@ -7,7 +7,7 @@ org.sonarsource.java java-checks-test-sources - 8.24.0-SNAPSHOT + 9.13-FINAL spring-3.2 diff --git a/java-checks-test-sources/spring-web-4.0/pom.xml b/java-checks-test-sources/spring-web-4.0/pom.xml index 3b68ca576d9..8d1246455fb 100644 --- a/java-checks-test-sources/spring-web-4.0/pom.xml +++ b/java-checks-test-sources/spring-web-4.0/pom.xml @@ -6,7 +6,7 @@ org.sonarsource.java java-checks-test-sources - 8.24.0-SNAPSHOT + 9.13-FINAL spring-web-4.0 diff --git a/java-checks-test-sources/test-classpath-reader/pom.xml b/java-checks-test-sources/test-classpath-reader/pom.xml index 5fecf78ef08..21290522cc3 100644 --- a/java-checks-test-sources/test-classpath-reader/pom.xml +++ b/java-checks-test-sources/test-classpath-reader/pom.xml @@ -6,7 +6,7 @@ org.sonarsource.java java-checks-test-sources - 8.24.0-SNAPSHOT + 9.13-FINAL test-classpath-reader diff --git a/java-checks-testkit/pom.xml b/java-checks-testkit/pom.xml index 008dd9482de..bd49dac0b11 100644 --- a/java-checks-testkit/pom.xml +++ b/java-checks-testkit/pom.xml @@ -5,7 +5,7 @@ org.sonarsource.java java - 8.24.0-SNAPSHOT + 9.13-FINAL java-checks-testkit diff --git a/java-checks/pom.xml b/java-checks/pom.xml index c72ccb9dad5..ac95dfe2243 100644 --- a/java-checks/pom.xml +++ b/java-checks/pom.xml @@ -5,7 +5,7 @@ org.sonarsource.java java - 8.24.0-SNAPSHOT + 9.13-FINAL java-checks diff --git a/java-frontend/pom.xml b/java-frontend/pom.xml index 3c82dafd07e..a9f571f3a3f 100644 --- a/java-frontend/pom.xml +++ b/java-frontend/pom.xml @@ -5,7 +5,7 @@ org.sonarsource.java java - 8.24.0-SNAPSHOT + 9.13-FINAL java-frontend diff --git a/java-jsp/pom.xml b/java-jsp/pom.xml index 5f96e1046cd..e24c37cab86 100644 --- a/java-jsp/pom.xml +++ b/java-jsp/pom.xml @@ -6,7 +6,7 @@ org.sonarsource.java java - 8.24.0-SNAPSHOT + 9.13-FINAL java-jsp diff --git a/java-surefire/pom.xml b/java-surefire/pom.xml index 078aa970da6..857b57063ad 100644 --- a/java-surefire/pom.xml +++ b/java-surefire/pom.xml @@ -5,7 +5,7 @@ org.sonarsource.java java - 8.24.0-SNAPSHOT + 9.13-FINAL java-surefire diff --git a/pom.xml b/pom.xml index df89bef4113..8c8f7d3d93c 100644 --- a/pom.xml +++ b/pom.xml @@ -10,7 +10,7 @@ org.sonarsource.java java - 8.24.0-SNAPSHOT + 9.13-FINAL pom SonarJava Code Analyzer for Java :: Parent POM diff --git a/sonar-java-plugin/pom.xml b/sonar-java-plugin/pom.xml index 52bbe2e5932..bc252d05747 100644 --- a/sonar-java-plugin/pom.xml +++ b/sonar-java-plugin/pom.xml @@ -6,7 +6,7 @@ org.sonarsource.java java - 8.24.0-SNAPSHOT + 9.13-FINAL sonar-java-plugin