Skip to content

Commit a104b15

Browse files
committed
Bump Spring Boot to 4.0.0
Use Java 25 to compile, target Java 17.
1 parent 4d28aa5 commit a104b15

File tree

3 files changed

+17
-13
lines changed

3 files changed

+17
-13
lines changed

CHANGELOG.md

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -148,15 +148,18 @@ Running S3Mock in unit tests is still supported by using [TestContainers](https:
148148
* JUnit 4.x deprecation
149149
* Remove JUnit 4.x support.
150150
* Remove legacy properties for S3Mock configuration.
151-
* Move all controller-related code from "com.adobe.testing.s3mock" to com.adobe.testing.s3mock.controller package.
151+
* Move all controller-related code from "com.adobe.testing.s3mock" to "com.adobe.testing.s3mock.controller" package.
152152
* Remove Apache libraries like "commons-compress", "commons-codec" or "commons-lang3" from dependencies. Kotlin and Java standard library provide similar functionality.
153153
* Version updates
154-
* Bump Spring Boot version to 4.x
155-
* Bump Spring Framework version to 7.x
154+
* Bump Spring Boot version to 4.0.0
155+
* Bump Spring Framework version to 7.0.1
156156
* Bump java version from 17 to 25
157-
* S3Mock will use the baseline Spring chooses to support.
158-
* The Docker container will run Java 25 LTS.
159-
* TestContainers from 1.x to 2.x
157+
* Compile with Java 25, target Java 17
158+
* Docker container runs Java 25
159+
* Bump TestContainers to 2.0.2
160+
* Bump Alpine Linux to 3.23.0 (release: December 2025)
161+
* This is the latest version of Alpine Linux that supports Java 25.
162+
* Bump Maven to 4.0.0
160163

161164
# CURRENT - 4.x - THIS VERSION IS UNDER ACTIVE DEVELOPMENT
162165
Version 4.x is JDK17 LTS bytecode compatible, with Docker and JUnit / direct Java integration.

pom.xml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -76,10 +76,10 @@
7676
</distributionManagement>
7777

7878
<properties>
79-
<!-- TODO: Upgrade to Java 25 release in November -->
80-
<java.version>21</java.version>
79+
<java.version>25</java.version>
80+
<java.target.version>17</java.target.version>
8181
<kotlin.version>2.2.21</kotlin.version>
82-
<kotlin.compiler.jvmTarget>${java.version}</kotlin.compiler.jvmTarget>
82+
<kotlin.compiler.jvmTarget>${java.target.version}</kotlin.compiler.jvmTarget>
8383
<kotlin.compiler.apiVersion>2.2</kotlin.compiler.apiVersion>
8484
<kotlin.compiler.languageVersion>2.2</kotlin.compiler.languageVersion>
8585
<kotlin-coroutines.version>1.10.2</kotlin-coroutines.version>
@@ -124,7 +124,7 @@
124124
<!-- Run Docker build by default -->
125125
<skipDocker>false</skipDocker>
126126
<sortpom-maven-plugin.version>4.0.0</sortpom-maven-plugin.version>
127-
<spring-boot.version>4.0.0-RC2</spring-boot.version>
127+
<spring-boot.version>4.0.0</spring-boot.version>
128128
<testcontainers.version>2.0.2</testcontainers.version>
129129
<testng.version>7.11.0</testng.version>
130130
<xmlunit-assertj3.version>2.11.0</xmlunit-assertj3.version>
@@ -471,7 +471,7 @@
471471
<artifactId>maven-compiler-plugin</artifactId>
472472
<version>${maven-compiler-plugin.version}</version>
473473
<configuration>
474-
<release>${java.version}</release>
474+
<release>${java.target.version}</release>
475475
<encoding>${project.build.sourceEncoding}</encoding>
476476
<parameters>true</parameters>
477477
</configuration>
@@ -512,7 +512,7 @@
512512
<configuration>
513513
<rules>
514514
<requireMavenVersion>
515-
<version>[3.5,)</version>
515+
<version>[3.9,)</version>
516516
</requireMavenVersion>
517517
<requireJavaVersion>
518518
<version>${java.version}</version>

server/src/main/kotlin/com/adobe/testing/s3mock/controller/ControllerConfiguration.kt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,8 @@ class ControllerConfiguration : WebMvcConfigurer {
8989
val mediaTypes = listOf(
9090
MediaType.APPLICATION_XML,
9191
MediaType.APPLICATION_FORM_URLENCODED,
92-
MediaType.APPLICATION_OCTET_STREAM
92+
MediaType.APPLICATION_OCTET_STREAM,
93+
MediaType.TEXT_XML
9394
)
9495

9596
val mapper = XmlMapper.builder()

0 commit comments

Comments
 (0)