From d9c4007497305f567da93adcf7a052de3e291f3c Mon Sep 17 00:00:00 2001 From: Tomasz Tylenda Date: Tue, 3 Feb 2026 15:04:10 +0100 Subject: [PATCH 1/6] Update Next Iteration GHA --- .github/workflows/PrepareNextIteration.yml | 23 +++++++++++++++------- 1 file changed, 16 insertions(+), 7 deletions(-) diff --git a/.github/workflows/PrepareNextIteration.yml b/.github/workflows/PrepareNextIteration.yml index 31cf5889293..a7e232f8cf0 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,29 @@ 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 }} 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}" + + - name: Create Pull Request + env: + GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} + run: | + gh pr create --base master --title "Prepare next development iteration ${NEXT_VERSION}" --body '' From 5527d05f23975a4b2e1bad4810dd414455f93084 Mon Sep 17 00:00:00 2001 From: Tomasz Tylenda Date: Tue, 3 Feb 2026 15:54:00 +0100 Subject: [PATCH 2/6] Trigger CI --- .github/workflows/PrepareNextIteration.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/PrepareNextIteration.yml b/.github/workflows/PrepareNextIteration.yml index a7e232f8cf0..70232d2d84d 100644 --- a/.github/workflows/PrepareNextIteration.yml +++ b/.github/workflows/PrepareNextIteration.yml @@ -25,6 +25,7 @@ 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" @@ -35,9 +36,14 @@ jobs: mvn versions:set -DgenerateBackupPoms=false -DnewVersion="${NEXT_VERSION}" git commit -m 'Prepare next development iteration' -a git push --set-upstream origin "${BRANCH}" + echo "branch=${BRANCH}" >> $GITHUB_OUTPUT - name: Create Pull Request env: GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} run: | gh pr create --base master --title "Prepare next development iteration ${NEXT_VERSION}" --body '' + + - name: Trigger Continuous Integration + run: | + gh workflow run build.yml --ref "${{ steps.update-version.outputs.branch }}" From c2152d40c8f35d25e985b205c99ad474f03127ae Mon Sep 17 00:00:00 2001 From: Tomasz Tylenda Date: Tue, 3 Feb 2026 17:49:28 +0100 Subject: [PATCH 3/6] cleanup --- .github/workflows/PrepareNextIteration.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/PrepareNextIteration.yml b/.github/workflows/PrepareNextIteration.yml index 70232d2d84d..f62c56bf48a 100644 --- a/.github/workflows/PrepareNextIteration.yml +++ b/.github/workflows/PrepareNextIteration.yml @@ -39,8 +39,6 @@ jobs: echo "branch=${BRANCH}" >> $GITHUB_OUTPUT - name: Create Pull Request - env: - GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} run: | gh pr create --base master --title "Prepare next development iteration ${NEXT_VERSION}" --body '' From da18e725c98a15a81c17c5343a304982ea062b3c Mon Sep 17 00:00:00 2001 From: Tomasz Tylenda Date: Tue, 3 Feb 2026 17:59:21 +0100 Subject: [PATCH 4/6] permissions --- .github/workflows/PrepareNextIteration.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/PrepareNextIteration.yml b/.github/workflows/PrepareNextIteration.yml index f62c56bf48a..db06333c89a 100644 --- a/.github/workflows/PrepareNextIteration.yml +++ b/.github/workflows/PrepareNextIteration.yml @@ -14,6 +14,7 @@ jobs: permissions: pull-requests: write contents: write + actions: write env: GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} From dd1cdc7b0e17b8649eb077ca01fdb12f37031393 Mon Sep 17 00:00:00 2001 From: Tomasz Tylenda Date: Tue, 3 Feb 2026 18:40:30 +0100 Subject: [PATCH 5/6] summary --- .github/workflows/PrepareNextIteration.yml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/.github/workflows/PrepareNextIteration.yml b/.github/workflows/PrepareNextIteration.yml index db06333c89a..e793a8cb060 100644 --- a/.github/workflows/PrepareNextIteration.yml +++ b/.github/workflows/PrepareNextIteration.yml @@ -40,9 +40,12 @@ jobs: echo "branch=${BRANCH}" >> $GITHUB_OUTPUT - name: Create Pull Request + id: create-pr run: | - gh pr create --base master --title "Prepare next development iteration ${NEXT_VERSION}" --body '' + URL=$(gh pr create --base master --title "Prepare next development iteration ${NEXT_VERSION}" --body '') + echo "url=${URL}" >> $GITHUB_OUTPUT - - name: Trigger Continuous Integration + - name: Summary run: | - gh workflow run build.yml --ref "${{ steps.update-version.outputs.branch }}" + echo "Generated ${{steps.create-pr.outputs.url}}" >> $GITHUB_STEP_SUMMARY + echo "Tip: close and reopen the PR to trigger CI. " >> $GITHUB_STEP_SUMMARY From 1114d10edbf6593539f1b522054a475c59629cb7 Mon Sep 17 00:00:00 2001 From: tomasz-tylenda-sonarsource Date: Tue, 3 Feb 2026 17:43:00 +0000 Subject: [PATCH 6/6] 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..42cf1315181 100644 --- a/check-list/pom.xml +++ b/check-list/pom.xml @@ -7,7 +7,7 @@ org.sonarsource.java java - 8.24.0-SNAPSHOT + 9.8-SUMMARY check-list diff --git a/docs/java-custom-rules-example/pom.xml b/docs/java-custom-rules-example/pom.xml index ac705654837..061bc6dd680 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.8-SUMMARY diff --git a/docs/pom.xml b/docs/pom.xml index fc0ce165fd2..fdad91a5b0e 100644 --- a/docs/pom.xml +++ b/docs/pom.xml @@ -5,7 +5,7 @@ org.sonarsource.java java - 8.24.0-SNAPSHOT + 9.8-SUMMARY docs diff --git a/external-reports/pom.xml b/external-reports/pom.xml index 764ef24b95d..d89bf512cdb 100644 --- a/external-reports/pom.xml +++ b/external-reports/pom.xml @@ -5,7 +5,7 @@ org.sonarsource.java java - 8.24.0-SNAPSHOT + 9.8-SUMMARY external-reports diff --git a/its/autoscan/pom.xml b/its/autoscan/pom.xml index 6aece8f8ddb..84e358aaafa 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.8-SUMMARY 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..853f23eb709 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.8-SUMMARY java-extension-plugin diff --git a/its/plugin/plugins/pom.xml b/its/plugin/plugins/pom.xml index 53453ca1e2f..89354b79130 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.8-SUMMARY it-java-plugin-plugins diff --git a/its/plugin/pom.xml b/its/plugin/pom.xml index a0b13e1a994..f32e0f64fc3 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.8-SUMMARY it-java-plugin diff --git a/its/plugin/tests/pom.xml b/its/plugin/tests/pom.xml index e3d57a5c497..e6bd2fa76a1 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.8-SUMMARY it-java-plugin-tests diff --git a/its/pom.xml b/its/pom.xml index 37020d8ea3c..2abe4449208 100644 --- a/its/pom.xml +++ b/its/pom.xml @@ -5,7 +5,7 @@ org.sonarsource.java java - 8.24.0-SNAPSHOT + 9.8-SUMMARY java-its diff --git a/its/ruling/pom.xml b/its/ruling/pom.xml index cb98756d78d..e68c7359856 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.8-SUMMARY it-java-ruling diff --git a/java-checks-aws/pom.xml b/java-checks-aws/pom.xml index 536d735f0e2..b10ad3b6001 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.8-SUMMARY java-checks-aws diff --git a/java-checks-common/pom.xml b/java-checks-common/pom.xml index 940d949b13a..1a1a46d083f 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.8-SUMMARY java-checks-common diff --git a/java-checks-test-sources/aws/pom.xml b/java-checks-test-sources/aws/pom.xml index 53fc552cc26..801e1e97e52 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.8-SUMMARY aws diff --git a/java-checks-test-sources/default/pom.xml b/java-checks-test-sources/default/pom.xml index 00d59ddbd0e..f80f71ec0c2 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.8-SUMMARY default diff --git a/java-checks-test-sources/java-17/pom.xml b/java-checks-test-sources/java-17/pom.xml index c48c50a867d..694292911ce 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.8-SUMMARY java-17 diff --git a/java-checks-test-sources/pom.xml b/java-checks-test-sources/pom.xml index 44427f4adcd..cd5b93b10d1 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.8-SUMMARY 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..c4fde8d14f3 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.8-SUMMARY 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..2b1b78a9aa7 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.8-SUMMARY 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..acf27f50afc 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.8-SUMMARY test-classpath-reader diff --git a/java-checks-testkit/pom.xml b/java-checks-testkit/pom.xml index 008dd9482de..864385a733e 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.8-SUMMARY java-checks-testkit diff --git a/java-checks/pom.xml b/java-checks/pom.xml index c72ccb9dad5..244c0ad06e6 100644 --- a/java-checks/pom.xml +++ b/java-checks/pom.xml @@ -5,7 +5,7 @@ org.sonarsource.java java - 8.24.0-SNAPSHOT + 9.8-SUMMARY java-checks diff --git a/java-frontend/pom.xml b/java-frontend/pom.xml index 3c82dafd07e..93d24d2c314 100644 --- a/java-frontend/pom.xml +++ b/java-frontend/pom.xml @@ -5,7 +5,7 @@ org.sonarsource.java java - 8.24.0-SNAPSHOT + 9.8-SUMMARY java-frontend diff --git a/java-jsp/pom.xml b/java-jsp/pom.xml index 5f96e1046cd..ce4c3114075 100644 --- a/java-jsp/pom.xml +++ b/java-jsp/pom.xml @@ -6,7 +6,7 @@ org.sonarsource.java java - 8.24.0-SNAPSHOT + 9.8-SUMMARY java-jsp diff --git a/java-surefire/pom.xml b/java-surefire/pom.xml index 078aa970da6..0e215f7d97a 100644 --- a/java-surefire/pom.xml +++ b/java-surefire/pom.xml @@ -5,7 +5,7 @@ org.sonarsource.java java - 8.24.0-SNAPSHOT + 9.8-SUMMARY java-surefire diff --git a/pom.xml b/pom.xml index df89bef4113..b27d6e94061 100644 --- a/pom.xml +++ b/pom.xml @@ -10,7 +10,7 @@ org.sonarsource.java java - 8.24.0-SNAPSHOT + 9.8-SUMMARY pom SonarJava Code Analyzer for Java :: Parent POM diff --git a/sonar-java-plugin/pom.xml b/sonar-java-plugin/pom.xml index 52bbe2e5932..1c0804ac698 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.8-SUMMARY sonar-java-plugin