Skip to content

Commit 6d5a974

Browse files
committed
Fix spring-kafka-3.x: use Spring Boot 3.2.12 BOM, test 3.1-3.3
Spring Kafka 3.1+ requires Spring Framework 6.1 (ClassFormatException). Spring Boot 3.1 still uses Spring Framework 6.0, so Spring Boot 3.2+ BOM is needed to manage consistent 6.1 versions. Verified locally: 3.1.4, 3.2.10, 3.3.7 all passed.
1 parent 285708e commit 6d5a974

File tree

2 files changed

+18
-3
lines changed

2 files changed

+18
-3
lines changed

test/plugin/scenarios/spring-kafka-3.x-scenario/pom.xml

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,13 +31,25 @@
3131
<maven-compiler-plugin.version>3.8.1</maven-compiler-plugin.version>
3232
<test.framework.version>3.0.0</test.framework.version>
3333
<log4j.version>2.6.2</log4j.version>
34-
<spring.boot.version>3.0.13</spring.boot.version>
34+
<spring.boot.version>3.2.12</spring.boot.version>
3535
<kafka-version>3.3.2</kafka-version>
3636
<okhttp-version>3.0.0</okhttp-version>
3737
</properties>
3838

3939
<name>skywalking-spring-kafka-3.x-scenario</name>
4040

41+
<dependencyManagement>
42+
<dependencies>
43+
<dependency>
44+
<groupId>org.springframework.boot</groupId>
45+
<artifactId>spring-boot-dependencies</artifactId>
46+
<version>${spring.boot.version}</version>
47+
<type>pom</type>
48+
<scope>import</scope>
49+
</dependency>
50+
</dependencies>
51+
</dependencyManagement>
52+
4153
<dependencies>
4254
<dependency>
4355
<groupId>org.springframework.boot</groupId>

test/plugin/scenarios/spring-kafka-3.x-scenario/support-version.list

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,8 @@
1515
# limitations under the License.
1616

1717
# Spring Kafka 3.x requires Spring Boot 3.x / JDK 17+
18-
# TODO: 3.1+ needs investigation — app fails to start with overridden spring.boot.version
19-
3.0.17
18+
# This scenario uses Spring Boot 3.1.12 BOM (Spring Framework 6.1).
19+
# spring-kafka 3.0.x not tested here (needs Spring Boot 3.0 — covered by separate scenario if needed).
20+
3.1.4
21+
3.2.10
22+
3.3.7

0 commit comments

Comments
 (0)