Skip to content

Commit c80889d

Browse files
committed
Pin versions for spring-framework and tomcat (due to security)
1 parent 2735502 commit c80889d

File tree

1 file changed

+3
-11
lines changed

1 file changed

+3
-11
lines changed

build.gradle

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@ plugins {
33
alias(libs.plugins.nexus.publish)
44
}
55

6+
ext['spring-framework.version'] = '6.2.8'
7+
ext['tomcat.version'] = '10.1.42'
8+
69
apply from: "${rootDir}/gradle/publish-root.gradle"
710

811
allprojects {
@@ -63,16 +66,6 @@ subprojects {
6366
annotationProcessor(libs.lombok)
6467
testCompileOnly(libs.lombok)
6568
testAnnotationProcessor(libs.lombok)
66-
67-
// Security constraints
68-
constraints {
69-
implementation("org.springframework:spring-web:6.2.8") {
70-
because("versions below 6.2.8 have security vulnerabilities including CVE-2024-38820 - see dependabot #12")
71-
}
72-
implementation("org.apache.tomcat.embed:tomcat-embed-core:10.1.42") {
73-
because("versions below 10.1.42 have security vulnerabilities including CVE-2024-56337 - see dependabot #13")
74-
}
75-
}
7669
}
7770

7871
checkstyle {
@@ -89,5 +82,4 @@ subprojects {
8982
consoleOutput = true
9083
ruleSets = ["$rootDir/ruleset.xml"]
9184
}
92-
9385
}

0 commit comments

Comments
 (0)