Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/artifactory-milestone-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
- name: Set up JDK
uses: actions/setup-java@v4
with:
java-version: '25'
java-version: '21'
distribution: 'temurin'
cache: 'maven'

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/continuous-integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ jobs:
- name: Set up JDK
uses: actions/setup-java@v4
with:
java-version: '25'
java-version: '21'
distribution: 'temurin'
cache: 'maven'

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/documentation-upload.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
- name: Set up JDK
uses: actions/setup-java@v4
with:
java-version: '25'
java-version: '21'
distribution: 'temurin'
cache: 'maven'

Expand Down
14 changes: 7 additions & 7 deletions .github/workflows/fast-continuous-integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
- name: Set up JDK
uses: actions/setup-java@v4
with:
java-version: '25'
java-version: '21'
distribution: 'temurin'
cache: 'maven'

Expand Down Expand Up @@ -65,7 +65,7 @@ jobs:
- name: Set up JDK
uses: actions/setup-java@v4
with:
java-version: '25'
java-version: '21'
distribution: 'temurin'
cache: 'maven'

Expand Down Expand Up @@ -102,7 +102,7 @@ jobs:
- name: Set up JDK
uses: actions/setup-java@v4
with:
java-version: '25'
java-version: '21'
distribution: 'temurin'
cache: 'maven'

Expand Down Expand Up @@ -139,7 +139,7 @@ jobs:
- name: Set up JDK
uses: actions/setup-java@v4
with:
java-version: '25'
java-version: '21'
distribution: 'temurin'
cache: 'maven'

Expand Down Expand Up @@ -176,7 +176,7 @@ jobs:
- name: Set up JDK
uses: actions/setup-java@v4
with:
java-version: '25'
java-version: '21'
distribution: 'temurin'
cache: 'maven'

Expand Down Expand Up @@ -219,7 +219,7 @@ jobs:
- name: Set up JDK
uses: actions/setup-java@v4
with:
java-version: '25'
java-version: '21'
distribution: 'temurin'
cache: 'maven'

Expand Down Expand Up @@ -248,7 +248,7 @@ jobs:
- name: Set up JDK
uses: actions/setup-java@v4
with:
java-version: '25'
java-version: '21'
distribution: 'temurin'
cache: 'maven'

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/main-push-fast.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ jobs:

- uses: actions/setup-java@v4
with:
java-version: '25'
java-version: '21'
distribution: 'temurin'
# cache: 'maven' # Disabled for fast workflow - reduces post-job noise

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/maintenance-fast.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:

- uses: actions/setup-java@v4
with:
java-version: '25'
java-version: '21'
distribution: 'temurin'
cache: 'maven'

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pr-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
- name: Set up JDK
uses: actions/setup-java@v4
with:
java-version: '25'
java-version: '21'
distribution: 'temurin'
cache: 'maven'

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release-notes-generation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
- name: Set up JDK
uses: actions/setup-java@v4
with:
java-version: '25'
java-version: '21'
distribution: 'temurin'

- name: Prepare configuration file
Expand Down
3 changes: 3 additions & 0 deletions .sdkmanrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Enable auto-env through the sdkman_auto_env config
# Add key=value pairs of SDKs to use below
java=21.0.9-tem
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ To clone it you have to either:

## Building

The project targets and build artifacts compatible with Java 17+, but requires a JDK 25+
The project targets and build artifacts compatible with Java 17+, but requires JDK 21
to build. This is enforced by the maven enforcer plugin.

To build with running unit tests
Expand Down
21 changes: 14 additions & 7 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,6 @@
<maven.compiler.source>${java.version}</maven.compiler.source>
<maven.compiler.target>${java.version}</maven.compiler.target>
<kotlin.compiler.jvmTarget>${java.version}</kotlin.compiler.jvmTarget>
<kotlin.compiler.version>2.2.21</kotlin.compiler.version>

<!-- production dependencies -->
<spring-boot.version>4.0.0</spring-boot.version>
Expand Down Expand Up @@ -340,7 +339,7 @@
<okhttp3.version>4.12.0</okhttp3.version>
<rest-assured-bom.version>5.5.6</rest-assured-bom.version>
<json-unit-assertj.version>4.1.0</json-unit-assertj.version>

<!-- MCP-->
<mcp.sdk.version>0.18.0-SNAPSHOT</mcp.sdk.version>
<mcp-annotations.version>0.9.0-SNAPSHOT</mcp-annotations.version>
Expand All @@ -351,7 +350,7 @@
<maven-enforcer-plugin.version>3.6.2</maven-enforcer-plugin.version>
<!-- The version (range) of the JDK we want to use to compile.
This is different from ${java.version} which we use as -release target. -->
<compiler.jdk.version>[25,)</compiler.jdk.version>
<compiler.jdk.version>[21.0.8,)</compiler.jdk.version>
<maven-surefire-plugin.version>3.1.2</maven-surefire-plugin.version>
<maven-failsafe-plugin.version>3.5.2</maven-failsafe-plugin.version>
<maven-javadoc-plugin.version>3.5.0</maven-javadoc-plugin.version>
Expand Down Expand Up @@ -422,10 +421,12 @@
<plugin>
<groupId>org.jetbrains.kotlin</groupId>
<artifactId>kotlin-maven-plugin</artifactId>
<version>${kotlin.compiler.version}</version>
<version>${kotlin.version}</version>
<configuration>
<jvmTarget>${java.version}</jvmTarget>
<javaParameters>true</javaParameters>
<apiVersion>2.2</apiVersion>
<languageVersion>2.2</languageVersion>
</configuration>
<executions>
<execution>
Expand Down Expand Up @@ -462,9 +463,6 @@
<release>${java.version}</release>
<compilerArgs>
<arg>-parameters</arg>
<arg>-XDcompilePolicy=simple</arg>
<arg>--should-stop=ifError=FLOW</arg>
<arg>-Xplugin:ErrorProne -XepDisableAllChecks -Xep:NullAway:ERROR -XepOpt:NullAway:OnlyNullMarked -XepOpt:NullAway:JSpecifyMode=true</arg>
</compilerArgs>
<annotationProcessorPaths>
<path>
Expand Down Expand Up @@ -496,6 +494,15 @@
<goals>
<goal>compile</goal>
</goals>
<configuration>
<compilerArgs>
<arg>-XDcompilePolicy=simple</arg>
<!-- The following arg won't be necessary with JDK25+ -->
<arg>-XDaddTypeAnnotationsToSymbol=true</arg>
<arg>--should-stop=ifError=FLOW</arg>
<arg>-Xplugin:ErrorProne -XepDisableAllChecks -Xep:NullAway:ERROR -XepOpt:NullAway:OnlyNullMarked -XepOpt:NullAway:JSpecifyMode=true</arg>
</compilerArgs>
</configuration>
</execution>
<execution>
<id>java-test-compile</id>
Expand Down