forked from gocd/gocd
-
Notifications
You must be signed in to change notification settings - Fork 1
/
dependencies.gradle
232 lines (226 loc) · 13.3 KB
/
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
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
/*
* Copyright 2023 Thoughtworks, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/** Parses a version from a dependency declaration string */
static String versionOf(String dependencySpec) {
return dependencySpec.split(':').last()
}
final Map<String, String> libraries = [
// Dependabot will parse these dependencies.
// Keep all of these as uninterpolated string literals so that Dependabot can parse the versions and create PRs for
// upgrades.
//
// DO NOT interpolate version variables here because Dependabot is not smart enough to understand those. Dependabot's
// version parsing is simply regex matching and never actually evaluates a gradle script.
activeMQ : 'org.apache.activemq:activemq-broker:5.18.2',
angusActivation : 'org.eclipse.angus:angus-activation:2.0.1', // Compatibility with JAXB and Angus Mail required
angusMailSmtp : 'org.eclipse.angus:smtp:2.0.2',
apacheAnt : 'org.apache.ant:ant:1.10.13',
apacheHttpComponents: 'org.apache.httpcomponents:httpclient:4.5.14',
aspectj : 'org.aspectj:aspectjweaver:1.9.19',
assertJ : 'org.assertj:assertj-core:3.24.2',
assertJ_DB : 'org.assertj:assertj-db:2.0.2',
bouncyCastle : 'org.bouncycastle:bcprov-jdk18on:1.76',
cloning : 'io.github.kostaskougios:cloning:1.10.3',
commonsCodec : 'commons-codec:commons-codec:1.16.0',
commonsCollections : 'commons-collections:commons-collections:3.2.2',
commonsCollections4 : 'org.apache.commons:commons-collections4:4.4',
commonsConfiguration: 'org.apache.commons:commons-configuration2:2.9.0',
commonsDbcp : 'org.apache.commons:commons-dbcp2:2.9.0',
commonsFileUpload : 'commons-fileupload:commons-fileupload:1.5',
commonsIO : 'commons-io:commons-io:2.13.0',
commonsLang3 : 'org.apache.commons:commons-lang3:3.13.0',
commonsPool : 'org.apache.commons:commons-pool2:2.11.1',
commonsText : 'org.apache.commons:commons-text:1.10.0',
dbunit : 'org.dbunit:dbunit:2.7.3',
dom4j : 'org.dom4j:dom4j:2.1.4',
ehcache : 'net.sf.ehcache.internal:ehcache-core:2.11.0.3.31', // See https://repo.terracotta.org/maven2/net/sf/ehcache/internal/ehcache-core/maven-metadata.xml
felix : 'org.apache.felix:org.apache.felix.framework:7.0.5',
freemarker : 'org.freemarker:freemarker:2.3.32',
gradleDownload : 'de.undercouch:gradle-download-task:5.4.0',
grolifant : 'org.ysb33r.gradle:grolifant-herd:2.0.0',
gson : 'com.google.code.gson:gson:2.10.1',
guava : 'com.google.guava:guava:32.1.1-jre',
h2 : 'com.h2database:h2:1.4.200',
hamcrest : 'org.hamcrest:hamcrest:2.2',
hibernate : 'org.hibernate:hibernate-ehcache:3.6.10.Final',
jacksonBom : 'com.fasterxml.jackson:jackson-bom:2.15.2',
jakartaAnnotation : 'jakarta.annotation:jakarta.annotation-api:1.3.5',
jakartaMail : 'jakarta.mail:jakarta.mail-api:2.1.2',
javassist : 'javassist:javassist:3.12.1.GA',
jaxbBom : 'org.glassfish.jaxb:jaxb-bom:4.0.3',
jaxen : 'jaxen:jaxen:2.0.0',
jcommander : 'com.beust:jcommander:1.82',
jdom : 'org.jdom:jdom2:2.0.6.1',
jetBrainsAnnotations: 'org.jetbrains:annotations:24.0.1',
jetty : 'org.eclipse.jetty:jetty-server:9.4.51.v20230217',
jgit : 'org.eclipse.jgit:org.eclipse.jgit:6.6.0.202305301015-r',
jodaTime : 'joda-time:joda-time:2.12.5', // joda-time version has to be compatible with the jruby version
jolt : 'com.bazaarvoice.jolt:jolt-core:0.1.8',
jruby : 'org.jruby:jruby-complete:9.4.3.0',
jsonUnit : 'net.javacrumbs.json-unit:json-unit-fluent:3.0.0',
jsoup : 'org.jsoup:jsoup:1.16.1',
junit5Bom : 'org.junit:junit-bom:5.10.0',
liquibase : 'org.liquibase:liquibase-core:4.20.0',
liquibaseSlf4j : 'com.mattbertolini:liquibase-slf4j:5.0.0',
logback : 'ch.qos.logback:logback-classic:1.2.12',
lombok : 'org.projectlombok:lombok:1.18.28',
mockitoBom : 'org.mockito:mockito-bom:5.4.0',
mybatis : 'org.mybatis:mybatis:3.5.13',
mybatisSpring : 'org.mybatis:mybatis-spring:2.1.1',
mysql : 'com.mysql:mysql-connector-j:8.1.0',
nanohttpd : 'org.nanohttpd:nanohttpd:2.3.1',
objenesis : 'org.objenesis:objenesis:3.3',
oscache : 'opensymphony:oscache:2.4.1',
oshi : 'com.github.oshi:oshi-core-java11:6.4.4',
postgresql : 'org.postgresql:postgresql:42.6.0',
quartz : 'org.quartz-scheduler:quartz:2.3.2',
rack : 'org.jruby.rack:jruby-rack:1.1.22',
semanticVersion : 'de.skuzzle:semantic-version:2.1.1',
servletApi : 'jakarta.servlet:jakarta.servlet-api:4.0.4', // Should be compatible with Jetty and Spring implementations
slf4j : 'org.slf4j:slf4j-api:1.7.36',
spark : 'com.sparkjava:spark-core:2.7.2',
spring : 'org.springframework:spring-core:4.3.30.RELEASE',
springSecurity : 'org.springframework.security:spring-security-config:4.2.20.RELEASE',
springTestJunit5 : 'com.github.sbrannen:spring-test-junit5:1.5.0',
systemStubs : 'uk.org.webcompere:system-stubs-jupiter:2.0.2',
testcontainersBom : 'org.testcontainers:testcontainers-bom:1.18.3',
tinybundles : 'org.ops4j.pax.tinybundles:tinybundles:3.0.0',
tokenBucket : 'org.isomorphism:token-bucket:1.7',
urlrewrite : 'org.tuckey:urlrewritefilter:3.2.0',
xmlUnit : 'org.xmlunit:xmlunit-assertj:2.9.1',
ztExec : 'org.zeroturnaround:zt-exec:1.12',
]
// Export versions that are needed outside of this file (and elsewhere within)
final Map<String, String> v = [
activeMQ : versionOf(libraries.activeMQ),
angusActivation : versionOf(libraries.angusActivation),
angusMailSmtp : versionOf(libraries.angusMailSmtp),
apacheAnt : versionOf(libraries.apacheAnt),
apacheHttpComponents: versionOf(libraries.apacheHttpComponents),
aspectj : versionOf(libraries.aspectj),
bouncyCastle : versionOf(libraries.bouncyCastle),
cloning : versionOf(libraries.cloning),
commonsCodec : versionOf(libraries.commonsCodec),
commonsCollections : versionOf(libraries.commonsCollections),
commonsCollections4 : versionOf(libraries.commonsCollections4),
commonsConfiguration: versionOf(libraries.commonsConfiguration),
commonsDbcp : versionOf(libraries.commonsDbcp),
commonsFileUpload : versionOf(libraries.commonsFileUpload),
commonsIO : versionOf(libraries.commonsIO),
commonsLang3 : versionOf(libraries.commonsLang3),
commonsPool : versionOf(libraries.commonsPool),
commonsText : versionOf(libraries.commonsText),
dom4j : versionOf(libraries.dom4j),
ehcache : versionOf(libraries.ehcache),
felix : versionOf(libraries.felix),
freemarker : versionOf(libraries.freemarker),
gson : versionOf(libraries.gson),
guava : versionOf(libraries.guava),
h2 : versionOf(libraries.h2),
hamcrest : versionOf(libraries.hamcrest),
hibernate : versionOf(libraries.hibernate),
jacksonBom : versionOf(libraries.jacksonBom),
javassist : versionOf(libraries.javassist),
jakartaAnnotation : versionOf(libraries.jakartaAnnotation),
jakartaMail : versionOf(libraries.jakartaMail),
jaxb : versionOf(libraries.jaxbBom),
jaxen : versionOf(libraries.jaxen),
jcommander : versionOf(libraries.jcommander),
jdom : versionOf(libraries.jdom),
jetty : versionOf(libraries.jetty),
jgit : versionOf(libraries.jgit),
jodaTime : versionOf(libraries.jodaTime),
jolt : versionOf(libraries.jolt),
jruby : versionOf(libraries.jruby),
liquibase : versionOf(libraries.liquibase),
liquibaseSlf4j : versionOf(libraries.liquibaseSlf4j),
logback : versionOf(libraries.logback),
mybatis : versionOf(libraries.mybatis),
mybatisSpring : versionOf(libraries.mybatisSpring),
mysql : versionOf(libraries.mysql),
nanohttpd : versionOf(libraries.nanohttpd),
objenesis : versionOf(libraries.objenesis),
oscache : versionOf(libraries.oscache),
oshi : versionOf(libraries.oshi),
postgresql : versionOf(libraries.postgresql),
quartz : versionOf(libraries.quartz),
rack : versionOf(libraries.rack),
semanticVersion : versionOf(libraries.semanticVersion),
servletApi : versionOf(libraries.servletApi),
slf4j : versionOf(libraries.slf4j),
spark : versionOf(libraries.spark),
spring : versionOf(libraries.spring),
springSecurity : versionOf(libraries.springSecurity),
tokenBucket : versionOf(libraries.tokenBucket),
urlrewrite : versionOf(libraries.urlrewrite),
xmlUnit : versionOf(libraries.xmlUnit),
ztExec : versionOf(libraries.ztExec),
// misc
tanuki : '3.5.54-st',
tanukiSha256sum : '37cc32b74004c14651c5039d5e6491e1c0912570cf7706aa772a66c6ed69cbe6',
tfsSdk : '14.137.0',
tfsSdkSha256sum : '1f3a5a29b777511e06b5f88e8bea5a670426ee0e01a0e649f160bc493e306e91',
tini : '0.19.0',
]
// While Dependabot won't be able to parse these deps, these will get upgraded for free anyway since they share versions
// with dependencies declared above that are parseable by Dependabot, or are managed by platforms.
// This is just a workaround to be DRY while still benefiting from Dependabot's automatic PR upgrades.
final Map<String, String> related = [
apacheHttpMime : "org.apache.httpcomponents:httpmime:${v.apacheHttpComponents}",
bouncyCastlePkix : "org.bouncycastle:bcpkix-jdk18on:${v.bouncyCastle}",
jacksonCore : "com.fasterxml.jackson.core:jackson-core",
jacksonDatabind : "com.fasterxml.jackson.core:jackson-databind",
jaxbApi : "jakarta.xml.bind:jakarta.xml.bind-api",
jaxbRuntime : "org.glassfish.jaxb:jaxb-runtime",
jettyDeploy : "org.eclipse.jetty:jetty-deploy:${v.jetty}",
jettyJmx : "org.eclipse.jetty:jetty-jmx:${v.jetty}",
jettyPlus : "org.eclipse.jetty:jetty-plus:${v.jetty}",
jettyServlet : "org.eclipse.jetty:jetty-servlet:${v.jetty}",
jettyServlets : "org.eclipse.jetty:jetty-servlets:${v.jetty}",
jettyUtil : "org.eclipse.jetty:jetty-util:${v.jetty}",
jettyWebapp : "org.eclipse.jetty:jetty-webapp:${v.jetty}",
jettyWebsocket : "org.eclipse.jetty.websocket:websocket-server:${v.jetty}",
jgitServer : "org.eclipse.jgit:org.eclipse.jgit.http.server:${v.jgit}",
joltJsonUtils : "com.bazaarvoice.jolt:json-utils:${v.jolt}",
junit5Api : "org.junit.jupiter:junit-jupiter-api",
junit5Engine : "org.junit.jupiter:junit-jupiter-engine",
junit5Params : "org.junit.jupiter:junit-jupiter-params",
mockitoCore : "org.mockito:mockito-core",
mockitoJunit5 : "org.mockito:mockito-junit-jupiter",
slf4jJcl : "org.slf4j:jcl-over-slf4j:${v.slf4j}",
slf4jJul : "org.slf4j:jul-to-slf4j:${v.slf4j}",
slf4jLog4j : "org.slf4j:log4j-over-slf4j:${v.slf4j}",
springContext : "org.springframework:spring-context:${v.spring}",
springContextSupport : "org.springframework:spring-context-support:${v.spring}",
springOrm : "org.springframework:spring-orm:${v.spring}",
springSecurityWeb : "org.springframework.security:spring-security-web:${v.springSecurity}",
springTest : "org.springframework:spring-test:${v.spring}",
springTx : "org.springframework:spring-tx:${v.spring}",
springWeb : "org.springframework:spring-web:${v.spring}",
springWebmvc : "org.springframework:spring-webmvc:${v.spring}",
testcontainers : "org.testcontainers:testcontainers",
testcontainersJdbc : "org.testcontainers:jdbc",
testcontainersJunit : "org.testcontainers:junit-jupiter",
testcontainersMysql : "org.testcontainers:mysql",
testcontainersPostgresql: "org.testcontainers:postgresql",
xmlUnitMatchers : "org.xmlunit:xmlunit-matchers:${v.xmlUnit}",
]
ext {
//noinspection GroovyAssignabilityCheck
deps = libraries + related
//noinspection GroovyAssignabilityCheck
versions = v
}