-
Notifications
You must be signed in to change notification settings - Fork 174
/
spinnaker-dependencies.gradle
200 lines (193 loc) · 10.7 KB
/
spinnaker-dependencies.gradle
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
apply plugin: "java-platform"
javaPlatform {
allowDependencies()
}
ext {
versions = [
arrow : "0.13.2",
aws : "1.12.176",
awsv2 : "2.19.0",
bouncycastle : "1.77",
brave : "5.12.3",
gcp : "25.3.0",
jsch : "0.1.54",
jschAgentProxy : "0.0.9",
protobuf : "3.21.12",
okhttp : "2.7.5", // CVE-2016-2402
okhttp3 : "4.9.3",
openapi : "1.3.9", // this needs to be kept in sync with spring boot as it pulls in the spring-boot-dependencies BOM
retrofit : "1.9.0",
retrofit2 : "2.8.1",
spectator : "1.0.6",
spek : "1.1.5",
spek2 : "2.0.9",
springBoot : "2.5.15",
springCloud : "2020.0.6",
springfoxSwagger : "3.0.0",
swagger : "1.5.20", //this should stay in sync with what springfoxSwagger expects.
// Spring boot 2.4.13 brings in 9.0.55. Spring boot 2.5.14 brings in
// 9.0.63. Use 9.0.69 to resolve CVE-2022-42252 and CVE-2022-45143. Spring
// boot 2.6.14 and 2.7.6 bring in 9.0.69.
tomcat : "9.0.69"
]
}
dependencies {
/*
* These are 3rd party BOMs we inherit from. Any version constraints they contain we get
* transitively.
*
* Order matters somewhat here in that if multiple BOMs constrain the same things the FIRST wins.
* For example, `junit-bom` and `jackson-bom` will win out over the versions of JUnit and Jackson
* specified by `spring-boot-dependencies`.
*/
// Log4shell safeguard. Per analysis, log4j-core is not included in dependencies, but this would prevent transitive inclusion of it by extension
// platforms. Doing 2.16.0 which completely removes message lookups AND sets jndi to disabled by default
// 2.16.0 is subject to CVE-2021-45105. 2.17.0 is subject to CVE-2021-44832, so use >= 2.17.1.
api(platform("org.apache.logging.log4j:log4j-bom:2.20.0"))
api(platform("org.jetbrains.kotlinx:kotlinx-coroutines-bom:1.5.2"))
//kotlinVersion comes from gradle.properties since we have kotlin code in
// this project and need to configure gradle plugins etc.
api(platform("org.jetbrains.kotlin:kotlin-bom:$kotlinVersion"))
api(platform("io.zipkin.brave:brave-bom:${versions.brave}"))
api(platform("org.junit:junit-bom:5.8.2")) // remove with spring boot >= 2.6.2
api(platform("org.springframework.boot:spring-boot-dependencies:${versions.springBoot}"))
api(platform("com.amazonaws:aws-java-sdk-bom:${versions.aws}"))
api(platform("com.google.protobuf:protobuf-bom:${versions.protobuf}"))
api(platform("com.google.cloud:libraries-bom:${versions.gcp}"))
api(platform("software.amazon.awssdk:bom:${versions.awsv2}"))
api(platform("org.springframework.cloud:spring-cloud-dependencies:${versions.springCloud}"))
api(platform("io.strikt:strikt-bom:0.31.0"))
api(platform("org.spockframework:spock-bom:2.0-groovy-3.0"))
api(platform("com.oracle.oci.sdk:oci-java-sdk-bom:3.21.0"))
api(platform("org.testcontainers:testcontainers-bom:1.16.2"))
api(platform("io.arrow-kt:arrow-stack:${versions.arrow}"))
constraints {
api("cglib:cglib-nodep:3.3.0")
api("com.amazonaws:aws-java-sdk:${versions.aws}")
api("com.google.api-client:google-api-client:1.30.10") // TODO: Track update for CVE-2020-7692, reanalysis pending.
api("com.google.apis:google-api-services-admin-directory:directory_v1-rev105-1.25.0")
api("com.google.apis:google-api-services-cloudbuild:v1-rev836-1.25.0")
api("com.google.apis:google-api-services-compute:alpha-rev20200526-1.30.9")
api("com.google.apis:google-api-services-iam:v1-rev267-1.25.0")
api("com.google.apis:google-api-services-monitoring:v3-rev477-1.25.0")
api("com.google.apis:google-api-services-storage:v1-rev141-1.25.0")
api("com.google.cloud:google-cloud-secretmanager:2.3.10")
api("com.google.code.findbugs:jsr305:3.0.2")
api("com.google.guava:guava:30.0-jre")
api("com.hubspot.jinjava:jinjava:2.7.1")
api("com.jakewharton.retrofit:retrofit1-okhttp3-client:1.1.0")
api("com.jcraft:jsch:${versions.jsch}")
api("com.jcraft:jsch.agentproxy.connector-factory:${versions.jschAgentProxy}")
api("com.jcraft:jsch.agentproxy.jsch:${versions.jschAgentProxy}")
api("com.natpryce:hamkrest:1.4.2.2")
api("com.netflix.archaius:archaius-core:0.7.7")
api("com.netflix.awsobjectmapper:awsobjectmapper:${versions.aws}")
api("com.netflix.dyno:dyno-jedis:1.7.2")
api("com.netflix.eureka:eureka-client:1.10.17")
api("com.netflix.frigga:frigga:0.24.0")
api("com.netflix.netflix-commons:netflix-eventbus:0.3.0")
api("com.netflix.spectator:spectator-api:${versions.spectator}")
api("com.netflix.spectator:spectator-ext-aws:${versions.spectator}")
api("com.netflix.spectator:spectator-ext-gc:${versions.spectator}")
api("com.netflix.spectator:spectator-ext-jvm:${versions.spectator}")
api("com.netflix.spectator:spectator-nflx-plugin:${versions.spectator}")
api("com.netflix.spectator:spectator-reg-atlas:${versions.spectator}")
api("com.netflix.spectator:spectator-web-spring:${versions.spectator}")
api("com.netflix.spectator:spectator-reg-micrometer:${versions.spectator}")
api("com.nimbusds:nimbus-jose-jwt:7.9")
api("com.nhaarman.mockitokotlin2:mockito-kotlin:2.2.0")
api("com.nhaarman:mockito-kotlin:1.6.0")
api("com.ninja-squad:springmockk:2.0.3")
api("com.squareup.okhttp3:logging-interceptor:${versions.okhttp3}")
api("com.squareup.okhttp3:mockwebserver:${versions.okhttp3}")
api("com.squareup.okhttp3:okhttp-sse:${versions.okhttp3}")
api("com.squareup.okhttp3:okhttp-urlconnection:${versions.okhttp3}")
api("com.squareup.okhttp3:okhttp:${versions.okhttp3}")
api("com.squareup.okhttp:mockwebserver:${versions.okhttp}")
api("com.squareup.okhttp:okhttp-apache:${versions.okhttp}")
api("com.squareup.okhttp:okhttp-urlconnection:${versions.okhttp}")
api("com.squareup.okhttp:okhttp:${versions.okhttp}")
api("com.squareup.retrofit2:converter-jackson:${versions.retrofit2}")
api("com.squareup.retrofit2:retrofit-mock:${versions.retrofit2}")
api("com.squareup.retrofit2:retrofit:${versions.retrofit2}")
api("com.squareup.retrofit:converter-jackson:${versions.retrofit}")
api("com.squareup.retrofit:converter-simplexml:${versions.retrofit}")
api("com.squareup.retrofit:retrofit-mock:${versions.retrofit}")
api("com.squareup.retrofit:retrofit:${versions.retrofit}")
api("com.sun.xml.bind:jaxb-core:2.3.0.1")
api("com.sun.xml.bind:jaxb-impl:2.3.2")
api("com.vdurmont:semver4j:3.1.0")
api("commons-configuration:commons-configuration:1.8")
api("commons-io:commons-io:2.11.0")
// CVE's in 3.2.1
api("commons-collections:commons-collections:[3.2.2,3.3)")
api("de.danielbechler:java-object-diff:0.95")
api("de.huxhorn.sulky:de.huxhorn.sulky.ulid:8.2.0")
api("dev.minutest:minutest:1.13.0")
api("io.mockk:mockk:1.10.5")
api("io.springfox:springfox-boot-starter:${versions.springfoxSwagger}")
api("io.springfox:springfox-swagger2:${versions.springfoxSwagger}")
api("io.swagger:swagger-annotations:${versions.swagger}")
api("javax.annotation:javax.annotation-api:1.3.2")
api("javax.xml.bind:jaxb-api:2.3.1")
api("net.logstash.logback:logstash-logback-encoder:4.11")
api("org.apache.commons:commons-exec:1.3")
// from BC 1.71, module names changed from *-jdk15on to *-jdk18on
// due to this change, some of the modules in downstream services like clouddriver, gate would fall back to
// lower versions(<1.70) as transitive dependencies. So to make them use BC >=1.74(CVE free versions),
// the following dependencies are upgraded: oci-java-sdk-bom, google-cloud-secretmanager
// and in some cases *-jdk15on libraries are excluded so as to use the available *-jdk18on or *-jdk15to18
// some of the modules would still use <1.70 as they can't be upgraded without upgrading spring boot
api("org.bouncycastle:bcpkix-jdk18on:${versions.bouncycastle}")
api("org.bouncycastle:bcprov-jdk18on:${versions.bouncycastle}")
api("org.jetbrains:annotations:19.0.0")
api("org.spekframework.spek2:spek-dsl-jvm:${versions.spek2}")
api("org.spekframework.spek2:spek-runner-junit5:${versions.spek2}")
api("org.jetbrains.spek:spek-api:${versions.spek}")
api("org.jetbrains.spek:spek-junit-platform-engine:${versions.spek}")
api("org.jetbrains.spek:spek-junit-platform-runner:${versions.spek}")
api("org.jetbrains.spek:spek-subject-extension:${versions.spek}")
api("org.liquibase:liquibase-core"){
version {
strictly "4.24.0"
}
}
api("org.objenesis:objenesis:2.5.1")
api("org.pf4j:pf4j:3.10.0")
// pf4j:3.10.0 brings in slf4j-api:2.0.6 which is not compatible with logback 1.2.x.
// And the upgraded logback version(1.3.8) is becoming incompatible with SpringBoot's LogbackLoggingSystem:
// java.lang.NoClassDefFoundError at LogbackLoggingSystem.java:293
// Hence pinning slf4j-api at 1.7.36 which spring boot 2.5.15 brings in.
api("org.slf4j:slf4j-api"){
version {
strictly("1.7.36")
}
}
api("org.pf4j:pf4j-update:2.3.0")
// snakeyaml 1.29 fails to parse yaml (including some k8s manifests), so
// stick with 1.27 since that's what spring boot 2.4.13 uses.
// https://github.com/spring-projects/spring-boot/issues/30159#issuecomment-1125969155
// has details, including that snakeyaml 1.28 doesn't suffer from this bug.
// We could remove this specification altogether, and move to 1.28 along
// with spring boot 2.5, but I'd rather pin it here to avoid hitting the bug
// when we upgrade to spring boot 2.6.x. It's safe to upgrade beyond 1.29
// with spring boot >= 2.6.12. See
// https://github.com/spring-projects/spring-boot/issues/32228#issue-136185850.0.
// making it strict as some of the modules have it resolved to higher versions (ex: kork-secrets-gcp to 1.30)
api("org.yaml:snakeyaml") {
version {
strictly "1.27"
}
}
api("org.springdoc:springdoc-openapi-webmvc-core:${versions.openapi}")
api("org.springdoc:springdoc-openapi-kotlin:${versions.openapi}")
api("org.springframework.boot:spring-boot-configuration-processor:${versions.springBoot}")
api("org.springframework.security.oauth.boot:spring-security-oauth2-autoconfigure:2.3.12.RELEASE")
api("org.springframework.security.extensions:spring-security-saml-dsl-core:1.0.5.RELEASE")
api("org.springframework.security.extensions:spring-security-saml2-core:1.0.9.RELEASE")
api("org.threeten:threeten-extra:1.0")
api("org.apache.tomcat.embed:tomcat-embed-core:${versions.tomcat}")
api("org.apache.tomcat.embed:tomcat-embed-el:${versions.tomcat}")
api("org.apache.tomcat.embed:tomcat-embed-websocket:${versions.tomcat}")
}
}