@@ -23,25 +23,6 @@ allprojects {
2323}
2424
2525subprojects {
26- configurations. configureEach {
27- resolutionStrategy. eachDependency {
28- if (requested. group == ' tools.jackson.core' && requested. name == ' jackson-core'
29- && requested. version != null && requested. version < ' 3.1.1' ) {
30- useVersion(' 3.1.1' )
31- because(' GHSA-2m67-wjpj-xhg9: Jackson Core 3.0.0-3.1.0 maxDocumentLength bypass' )
32- }
33- if (requested. group == ' org.apache.tomcat.embed' && requested. name == ' tomcat-embed-core'
34- && requested. version != null && requested. version < ' 11.0.22' ) {
35- useVersion(' 11.0.22' )
36- because(' GHSA-rv64-5gf8-9qq8 / GHSA-x4m4-345f-5h5g / GHSA-24j9-x2wg-9qv6 / GHSA-gx5v-xp9w-j4cg: Apache Tomcat < 11.0.22 vulnerabilities' )
37- }
38- if (requested. group == ' io.netty' && requested. version != null && requested. version < ' 4.2.13.Final' ) {
39- useVersion(' 4.2.13.Final' )
40- because(' GHSA-38f8-5428-x5cv: HTTP Request Smuggling in io.netty:netty-codec-http via malformed Transfer-Encoding headers' )
41- }
42- }
43- }
44-
4526 if (it. parent. name == ' examples' ) {
4627 apply plugin : ' java'
4728 } else {
@@ -78,6 +59,28 @@ subprojects {
7859 apply plugin : ' pmd'
7960
8061 dependencies {
62+ constraints {
63+ add(' implementation' , ' tools.jackson.core:jackson-core' ) {
64+ version {
65+ require ' [3.1.1,)'
66+ }
67+ because(' GHSA-2m67-wjpj-xhg9: Jackson Core 3.0.0-3.1.0 maxDocumentLength bypass' )
68+ }
69+ add(' implementation' , ' org.apache.tomcat.embed:tomcat-embed-core' ) {
70+ version {
71+ require ' [11.0.22,)'
72+ }
73+ because(' GHSA-rv64-5gf8-9qq8 / GHSA-x4m4-345f-5h5g / GHSA-24j9-x2wg-9qv6 / GHSA-gx5v-xp9w-j4cg: Apache Tomcat < 11.0.22 vulnerabilities' )
74+ }
75+ add(' implementation' , ' io.netty:netty-codec-http' ) {
76+ version {
77+ require ' [4.2.13.Final,)'
78+ prefer ' 4.2.14.Final'
79+ }
80+ because(' GHSA-38f8-5428-x5cv: HTTP Request Smuggling in io.netty:netty-codec-http via malformed Transfer-Encoding headers' )
81+ }
82+ }
83+
8184 // Lombok annotations to reduce boilerplate code
8285 compileOnly(libs. lombok)
8386 annotationProcessor(libs. lombok)
0 commit comments