Skip to content

Commit cdcc7a2

Browse files
authored
BAEL-9473 (#18891)
* Update pom.xml * Update pom.xml * Update pom.xml
1 parent f1ecebd commit cdcc7a2

File tree

2 files changed

+74
-6
lines changed
  • spring-boot-modules

2 files changed

+74
-6
lines changed

spring-boot-modules/spring-boot-caching/pom.xml

Lines changed: 71 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,64 @@
1515
</parent>
1616

1717
<dependencies>
18+
<!--
19+
1. Exclude conflicting Spring dependencies from starters.
20+
We must exclude core Spring modules (like core, context, and web) from the starters
21+
to prevent classpath collisions with the explicitly declared 6.2.11 versions below.
22+
-->
1823
<dependency>
1924
<groupId>org.springframework.boot</groupId>
2025
<artifactId>spring-boot-starter-web</artifactId>
21-
</dependency>
26+
<exclusions>
27+
<exclusion>
28+
<groupId>org.springframework</groupId>
29+
<artifactId>spring-context</artifactId>
30+
</exclusion>
31+
<exclusion>
32+
<groupId>org.springframework</groupId>
33+
<artifactId>spring-core</artifactId>
34+
</exclusion>
35+
<exclusion>
36+
<groupId>org.springframework</groupId>
37+
<artifactId>spring-beans</artifactId>
38+
</exclusion>
39+
<exclusion>
40+
<groupId>org.springframework</groupId>
41+
<artifactId>spring-web</artifactId>
42+
</exclusion>
43+
<exclusion>
44+
<groupId>org.springframework</groupId>
45+
<artifactId>spring-webmvc</artifactId>
46+
</exclusion>
47+
</exclusions>
48+
</dependency>
49+
50+
<dependency>
51+
<groupId>org.springframework.boot</groupId>
52+
<artifactId>spring-boot-starter-cache</artifactId>
53+
<exclusions>
54+
<exclusion>
55+
<groupId>org.springframework</groupId>
56+
<artifactId>spring-context</artifactId>
57+
</exclusion>
58+
<exclusion>
59+
<groupId>org.springframework</groupId>
60+
<artifactId>spring-core</artifactId>
61+
</exclusion>
62+
<exclusion>
63+
<groupId>org.springframework</groupId>
64+
<artifactId>spring-beans</artifactId>
65+
</exclusion>
66+
</exclusions>
67+
</dependency>
68+
69+
<!--
70+
2. Explicitly define Spring Framework dependencies at version 6.2.11
71+
(Required by user for spring-context and spring-context-support)
72+
We also include spring-core, spring-beans, and spring-web/spring-webmvc
73+
explicitly to guarantee compatible versions for classes like
74+
AnnotationConfigUtils (context) and CollectionUtils (core/beans).
75+
-->
2276
<dependency>
2377
<groupId>org.springframework</groupId>
2478
<artifactId>spring-context</artifactId>
@@ -30,17 +84,28 @@
3084
<version>6.2.11</version>
3185
</dependency>
3286
<dependency>
33-
<groupId>org.springframework.boot</groupId>
34-
<artifactId>spring-boot-starter-cache</artifactId>
87+
<groupId>org.springframework</groupId>
88+
<artifactId>spring-core</artifactId>
89+
<version>6.2.11</version>
90+
</dependency>
91+
<dependency>
92+
<groupId>org.springframework</groupId>
93+
<artifactId>spring-beans</artifactId>
94+
<version>6.2.11</version>
3595
</dependency>
3696
<dependency>
3797
<groupId>org.springframework</groupId>
3898
<artifactId>spring-web</artifactId>
99+
<version>6.2.11</version>
39100
</dependency>
40101
<dependency>
41102
<groupId>org.springframework</groupId>
42103
<artifactId>spring-webmvc</artifactId>
104+
<version>6.2.11</version>
43105
</dependency>
106+
107+
<!-- Other dependencies remain the same -->
108+
44109
<dependency>
45110
<groupId>org.ehcache</groupId>
46111
<artifactId>ehcache</artifactId>
@@ -49,6 +114,9 @@
49114
<dependency>
50115
<groupId>org.springframework</groupId>
51116
<artifactId>spring-test</artifactId>
117+
<!-- Note: spring-test version should be managed consistently, but we leave
118+
it to the parent for simplicity since it's only test scoped.
119+
If test issues arise, explicitly set the version here. -->
52120
<scope>test</scope>
53121
</dependency>
54122
<dependency>

spring-boot-modules/spring-boot-featureflag-unleash/pom.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,13 +39,13 @@
3939
<plugin>
4040
<groupId>org.springframework.boot</groupId>
4141
<artifactId>spring-boot-maven-plugin</artifactId>
42+
<configuration>
43+
<compilerArgs>--enable-preview</compilerArgs>
44+
</configuration>
4245
</plugin>
4346
<plugin>
4447
<groupId>org.apache.maven.plugins</groupId>
4548
<artifactId>maven-compiler-plugin</artifactId>
46-
<configuration>
47-
<compilerArgs>--enable-preview</compilerArgs>
48-
</configuration>
4949
</plugin>
5050
</plugins>
5151
</build>

0 commit comments

Comments
 (0)