@@ -3,12 +3,15 @@ plugins {
3
3
alias(libs. plugins. nexus. publish)
4
4
}
5
5
6
+ ext[' spring-framework.version' ] = ' 6.2.8'
7
+ ext[' tomcat.version' ] = ' 10.1.42'
8
+
6
9
apply from : " ${ rootDir} /gradle/publish-root.gradle"
7
10
8
11
allprojects {
9
12
group = ' com.getyourguide.openapi.validation'
10
13
description = ' OpenAPI Validation library'
11
- version = ' 3.2.0 '
14
+ version = ' 3.2.1 '
12
15
13
16
java {
14
17
toolchain {
@@ -63,6 +66,16 @@ subprojects {
63
66
annotationProcessor(libs. lombok)
64
67
testCompileOnly(libs. lombok)
65
68
testAnnotationProcessor(libs. lombok)
69
+
70
+ // Security constraints
71
+ constraints {
72
+ implementation(" org.springframework:spring-web:6.2.8" ) {
73
+ because(" versions below 6.2.8 have security vulnerabilities including CVE-2024-38820 - see dependabot #12" )
74
+ }
75
+ implementation(" org.apache.tomcat.embed:tomcat-embed-core:10.1.42" ) {
76
+ because(" versions below 10.1.42 have security vulnerabilities including CVE-2024-56337 - see dependabot #13" )
77
+ }
78
+ }
66
79
}
67
80
68
81
checkstyle {
@@ -79,24 +92,4 @@ subprojects {
79
92
consoleOutput = true
80
93
ruleSets = [" $rootDir /ruleset.xml" ]
81
94
}
82
-
83
- // Needed for security. See:
84
- // - https://github.com/getyourguide/openapi-validation-java/security/dependabot/7
85
- // - https://github.com/getyourguide/openapi-validation-java/security/dependabot/6
86
- // Hopefully with spring-boot 3.4.2+ this won't be needed anymore and can be removed.
87
- configurations. configureEach {
88
- resolutionStrategy. eachDependency {details ->
89
- if (details. requested. group == ' ch.qos.logback'
90
- && (details. requested. name == ' logback-core' || details. requested. name == ' logback-classic' )
91
- ) {
92
- def parse = { String v -> v. tokenize(' .' ). collect { it. padLeft(3 , ' 0' ) }. join() }
93
- def current = parse(details. requested. version)
94
- def minimum = parse(' 1.5.15' )
95
- if (current < minimum) {
96
- details. useVersion ' 1.5.15'
97
- details. because ' Security requirement: forcing logback version'
98
- }
99
- }
100
- }
101
- }
102
95
}
0 commit comments