File tree 1 file changed +16
-11
lines changed
1 file changed +16
-11
lines changed Original file line number Diff line number Diff line change @@ -6,6 +6,22 @@ plugins {
6
6
id " org.jetbrains.kotlin.jvm"
7
7
}
8
8
9
+ configurations {
10
+ all {
11
+ resolutionStrategy {
12
+ eachDependency { dependency ->
13
+ // Downgrades for Jetty, see https://github.com/spring-projects/spring-boot/issues/33044
14
+ if (dependency. requested. group == " jakarta.servlet" && dependency. requested. name == " jakarta.servlet-api" ) {
15
+ dependency. useVersion(" 5.0.0" )
16
+ }
17
+ if (dependency. requested. group == " jakarta.websocket" && dependency. requested. name == " jakarta.websocket-api" ) {
18
+ dependency. useVersion(" 2.0.0" )
19
+ }
20
+ }
21
+ }
22
+ }
23
+ }
24
+
9
25
dependencies {
10
26
implementation(enforcedPlatform(org.springframework.boot.gradle.plugin.SpringBootPlugin . BOM_COORDINATES ))
11
27
implementation(" org.springframework.boot:spring-boot-starter-webflux" )
@@ -15,17 +31,6 @@ dependencies {
15
31
replacedBy(" org.springframework.boot:spring-boot-starter-jetty" , " Use Jetty instead of Netty" )
16
32
}
17
33
}
18
- // Downgrades for Jetty, see https://github.com/spring-projects/spring-boot/issues/33044
19
- implementation(" jakarta.servlet:jakarta.servlet-api" ) {
20
- version {
21
- strictly " 5.0.0"
22
- }
23
- }
24
- implementation(" jakarta.websocket:jakarta.websocket-api" ) {
25
- version {
26
- strictly " 2.0.0"
27
- }
28
- }
29
34
implementation(" org.jetbrains.kotlin:kotlin-reflect" )
30
35
implementation(" org.jetbrains.kotlin:kotlin-stdlib-jdk8" )
31
36
implementation(" org.jetbrains.kotlinx:kotlinx-coroutines-reactor" )
You can’t perform that action at this time.
0 commit comments