@@ -3,12 +3,15 @@ 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+
69apply from : " ${ rootDir} /gradle/publish-root.gradle"
710
811allprojects {
912 group = ' com.getyourguide.openapi.validation'
1013 description = ' OpenAPI Validation library'
11- version = ' 3.2.0 '
14+ version = ' 3.2.1 '
1215
1316 java {
1417 toolchain {
@@ -63,6 +66,16 @@ subprojects {
6366 annotationProcessor(libs. lombok)
6467 testCompileOnly(libs. lombok)
6568 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+ }
6679 }
6780
6881 checkstyle {
@@ -79,24 +92,4 @@ subprojects {
7992 consoleOutput = true
8093 ruleSets = [" $rootDir /ruleset.xml" ]
8194 }
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- }
10295}
0 commit comments