From a94a4a818ca2a42d12e4144bb517fc59b9ccff41 Mon Sep 17 00:00:00 2001 From: JohT <7671054+JohT@users.noreply.github.com> Date: Tue, 17 Mar 2026 20:01:31 +0100 Subject: [PATCH] Migrate non-library packages to Java 21 --- .github/workflows/codeql-analysis.yml | 7 ++ .github/workflows/continuous-integration.yml | 9 +- pom.xml | 82 +++++++++---------- .../pom.xml | 15 ++-- type-alias-axon-serializer/pom.xml | 2 +- 5 files changed, 54 insertions(+), 61 deletions(-) diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index dab0a11..c7f567b 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -71,6 +71,13 @@ jobs: # Prefix the list here with "+" to use these queries and those in the config file. # queries: ./path/to/local/query, your-org/your-repo/queries@main + - name: Setup Java Development Kit (JDK) 21 + uses: actions/setup-java@v5 + with: + distribution: 'adopt' + java-version: 21 + cache: 'maven' + # Autobuild attempts to build any compiled languages (C/C++, C#, or Java). # If this step fails, then you should remove it and run the build manually (see below) - name: Autobuild diff --git a/.github/workflows/continuous-integration.yml b/.github/workflows/continuous-integration.yml index cbe603f..3571670 100644 --- a/.github/workflows/continuous-integration.yml +++ b/.github/workflows/continuous-integration.yml @@ -32,7 +32,7 @@ jobs: env: CI_COMMIT_CHANGELOG_MESSAGE: Update Changelog CI_COMMIT_CHANGELOG_AUTHOR: ${{ github.event.repository.name }} Changelog Generator - JAVA_VERSION: 11 + JAVA_VERSION: 21 steps: - name: (GIT) Checkout code uses: actions/checkout@v6 @@ -50,13 +50,6 @@ jobs: - name: (Maven) Build run: mvn --batch-mode install --file pom.xml - - name: (Setup) Java Development Kit (JDK) 8 for integration tests - uses: actions/setup-java@v5 - with: - distribution: 'adopt' - java-version: 8 - cache: 'maven' - - name: (Maven) Build and run integration tests working-directory: type-alias-axon-serializer-integration-test run: mvn --batch-mode package --file pom.xml diff --git a/pom.xml b/pom.xml index a4a17b8..29ce8e3 100644 --- a/pom.xml +++ b/pom.xml @@ -58,7 +58,7 @@ GitHub UTF-8 - 11 + 21 1.8 3.15.0 @@ -73,7 +73,7 @@ 5.14.3 3.0 - 1.10.19 + 5.5.0 @@ -97,7 +97,7 @@ org.mockito - mockito-all + mockito-core ${mockito.version} @@ -155,6 +155,34 @@ + + + + se.bjurr.gitchangelog + git-changelog-maven-plugin + ${git-changelog-maven-plugin.version} + false + + + GenerateGitChangelog + generate-sources + + git-changelog + + + CHANGELOG.md + changelogTemplate.mustache + true + true + #([0-9]+) + true + Next release + refs/heads/main + 2019-08-01 00:00:00 + + + + @@ -179,6 +207,12 @@ org.apache.maven.plugins maven-surefire-plugin ${maven.surefire.version} + + + en + US + + org.apache.maven.plugins @@ -251,47 +285,7 @@ git-changelog-maven-plugin ${git-changelog-maven-plugin.version} false - - - GenerateGitChangelog - generate-sources - - git-changelog - - - - CHANGELOG.md - changelogTemplate.mustache - true - true - #([0-9]+) - true - Next release - refs/heads/main - 2019-08-01 00:00:00 - - - - - - + diff --git a/type-alias-axon-serializer-integration-test/pom.xml b/type-alias-axon-serializer-integration-test/pom.xml index e773293..cd104ed 100644 --- a/type-alias-axon-serializer-integration-test/pom.xml +++ b/type-alias-axon-serializer-integration-test/pom.xml @@ -1,9 +1,14 @@ 4.0.0 - io.github.joht.alias + + io.github.joht.alias + alias-parent + 2.0.1-SNAPSHOT + ../pom.xml + + type-alias-axon-serializer-integration-test - 2.0.1-SNAPSHOT type-alias-axon-serializer-integration-test Contains the integration test for the type alias aware axon serializer including a fully working demo configuration for axon using JavaEE 8. @@ -25,7 +30,6 @@ UTF-8 - 1.8 4.12.3 @@ -51,13 +55,8 @@ 3.19.4 5.14.3 2.2 - 1.10.19 - 3.15.0 - 3.5.5 - 3.5.5 - 3.3.0 3.10.0 3.5.0 1.0.0 diff --git a/type-alias-axon-serializer/pom.xml b/type-alias-axon-serializer/pom.xml index 6bea1c5..b475cc0 100644 --- a/type-alias-axon-serializer/pom.xml +++ b/type-alias-axon-serializer/pom.xml @@ -39,7 +39,7 @@ org.mockito - mockito-all + mockito-core test