This repository has been archived by the owner on May 10, 2023. It is now read-only.
forked from gocd/gocd
-
Notifications
You must be signed in to change notification settings - Fork 0
/
dependencies.gradle
237 lines (231 loc) · 13.5 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
233
234
235
236
237
/*
* Copyright 2021 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.16.3',
apacheAnt : 'org.apache.ant:ant:1.10.12',
apacheHttpComponents: 'org.apache.httpcomponents:httpclient:4.5.13',
aspectj : 'org.aspectj:aspectjrt:1.9.7',
assertJ : 'org.assertj:assertj-core:3.21.0',
assertJ_DB : 'org.assertj:assertj-db:2.0.2',
bouncyCastle : 'org.bouncycastle:bcprov-jdk15on:1.70', // This version of BC is not compatible with the jruby-opensssl version, since we are not using jruby-opensssl going ahead with the upgrade.
bundler : 'rubygems:bundler:2.2.32',
cglib : 'cglib:cglib:3.3.0',
cloning : 'io.github.kostaskougios:cloning:1.10.3',
commonsBeanUtils : 'commons-beanutils:commons-beanutils:1.9.4',
commonsCodec : 'commons-codec:commons-codec:1.15',
commonsCollections : 'commons-collections:commons-collections:3.2.2',
commonsCollections4 : 'org.apache.commons:commons-collections4:4.4',
commonsConfiguration: 'org.apache.commons:commons-configuration2:2.7',
commonsDbcp : 'org.apache.commons:commons-dbcp2:2.9.0',
commonsDigester : 'commons-digester:commons-digester:2.1',
commonsFileUpload : 'commons-fileupload:commons-fileupload:1.4',
commonsIO : 'commons-io:commons-io:2.11.0',
commonsLang : 'commons-lang:commons-lang:2.6',
commonsLang3 : 'org.apache.commons:commons-lang3:3.12.0',
commonsPool : 'org.apache.commons:commons-pool2:2.11.1',
commonsText : 'org.apache.commons:commons-text:1.9',
dbunit : 'org.dbunit:dbunit:2.7.2',
dom4j : 'org.dom4j:dom4j:2.1.3',
ehcache : 'net.sf.ehcache:ehcache:2.10.9.2',
felix : 'org.apache.felix:org.apache.felix.framework:7.0.3',
freemarker : 'org.freemarker:freemarker:2.3.31',
gradleDownload : 'de.undercouch:gradle-download-task:4.1.2',
grolifant : 'org.ysb33r.gradle:grolifant70:1.3.2',
gson : 'com.google.code.gson:gson:2.8.9',
guava : 'com.google.guava:guava:31.0.1-jre',
h2 : 'com.h2database:h2:1.4.200',
hamcrest : 'org.hamcrest:hamcrest-core:2.2',
hibernate : 'org.hibernate:hibernate-ehcache:3.6.10.Final',
httpClientMock : 'com.github.paweladamski:HttpClientMock:1.10.0',
jackson : 'com.fasterxml.jackson.core:jackson-core:2.13.0',
javaAssist : 'javassist:javassist:3.12.1.GA',
javaxAnnotation : 'javax.annotation:javax.annotation-api:1.3.2',
jaxb : 'javax.xml.bind:jaxb-api:2.3.1',
jaxen : 'jaxen:jaxen:1.2.0',
jcommander : 'com.beust:jcommander:1.81',
jdom : 'org.jdom:jdom2:2.0.6.1',
jetBrainsAnnotations: 'org.jetbrains:annotations:23.0.0',
jetty : 'org.eclipse.jetty:jetty-server:9.4.44.v20210927',
jgit : 'org.eclipse.jgit:org.eclipse.jgit:6.0.0.202111291000-r',
jodaTime : 'joda-time:joda-time:2.10.13', // joda-time version has to be compatible with the jruby version
jolt : 'com.bazaarvoice.jolt:jolt-core:0.1.5',
jruby : 'org.jruby:jruby-complete:9.2.9.0',
jsonUnit : 'net.javacrumbs.json-unit:json-unit-fluent:2.28.0',
jsontools : 'com.sdicons.jsontools:jsontools-core:1.7',
jsoup : 'org.jsoup:jsoup:1.14.3',
junit5 : 'org.junit.jupiter:junit-jupiter-api:5.8.2',
liquibase : 'org.liquibase:liquibase-core:4.6.2',
logback : 'ch.qos.logback:logback-classic:1.2.9',
lombok : 'org.projectlombok:lombok:1.18.22',
mail : 'com.sun.mail:mailapi:1.6.1',
mockito : 'org.mockito:mockito-core:4.2.0',
mybatis : 'org.mybatis:mybatis:3.5.8',
mybatisSpring : 'org.mybatis:mybatis-spring:2.0.6',
mysql : 'mysql:mysql-connector-java:8.0.27',
nanohttpd : 'org.nanohttpd:nanohttpd:2.3.1',
objenesis : 'org.objenesis:objenesis:3.2',
oscache : 'opensymphony:oscache:2.4.1',
postgresql : 'org.postgresql:postgresql:42.3.1',
quartz : 'org.quartz-scheduler:quartz:2.3.2',
rack : 'org.jruby.rack:jruby-rack:1.1.21',
semanticVersion : 'de.skuzzle:semantic-version:2.1.1',
servletApi : 'javax.servlet:javax.servlet-api:4.0.1',
slf4j : 'org.slf4j:slf4j-api:1.7.32',
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:1.2.0',
testcontainers : 'org.testcontainers:testcontainers:1.16.2',
tinybundles : 'org.ops4j.pax.tinybundles:tinybundles:3.0.0',
tokenBucket : 'org.isomorphism:token-bucket:1.7',
urlrewrite : 'org.tuckey:urlrewritefilter:3.2.0',
velocity : 'org.apache.velocity:velocity:1.7',
xalan : 'xalan:xalan:2.7.2',
xmlUnit : 'org.xmlunit:xmlunit-assertj:2.8.3',
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),
apacheAnt : versionOf(libraries.apacheAnt),
apacheHttpComponents: versionOf(libraries.apacheHttpComponents),
aspectj : versionOf(libraries.aspectj),
bouncyCastle : versionOf(libraries.bouncyCastle),
cglib : versionOf(libraries.cglib),
cloning : versionOf(libraries.cloning),
commonsBeanutils : versionOf(libraries.commonsBeanUtils),
commonsCodec : versionOf(libraries.commonsCodec),
commonsCollections : versionOf(libraries.commonsCollections),
commonsCollections4 : versionOf(libraries.commonsCollections4),
commonsConfiguration: versionOf(libraries.commonsConfiguration),
commonsDbcp : versionOf(libraries.commonsDbcp),
commonsDigester : versionOf(libraries.commonsDigester),
commonsFileUpload : versionOf(libraries.commonsFileUpload),
commonsIO : versionOf(libraries.commonsIO),
commonsLang : versionOf(libraries.commonsLang),
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),
jackson : versionOf(libraries.jackson),
javaAssist : versionOf(libraries.javaAssist),
javaxAnnotation : versionOf(libraries.javaxAnnotation),
jaxb : versionOf(libraries.jaxb),
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),
junit5 : versionOf(libraries.junit5),
liquibase : versionOf(libraries.liquibase),
logback : versionOf(libraries.logback),
mail : versionOf(libraries.mail),
mockito : versionOf(libraries.mockito),
mybatis : versionOf(libraries.mybatis),
mybatisSpring : versionOf(libraries.mybatisSpring),
mysql : versionOf(libraries.mysql),
nanohttpd : versionOf(libraries.nanohttpd),
objenesis : versionOf(libraries.objenesis),
oscache : versionOf(libraries.oscache),
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),
testcontainers : versionOf(libraries.testcontainers),
tokenBucket : versionOf(libraries.tokenBucket),
urlrewrite : versionOf(libraries.urlrewrite),
velocity : versionOf(libraries.velocity),
xmlUnit : versionOf(libraries.xmlUnit),
ztExec : versionOf(libraries.ztExec),
// misc
tanuki : '3.5.46',
tini : '0.19.0',
velocityToolsView : '1.4',
]
// 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. 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}",
aspectjWeaver : "org.aspectj:aspectjweaver:${v.aspectj}",
bouncyCastlePkix : "org.bouncycastle:bcpkix-jdk15on:${v.bouncyCastle}",
hamcrestLibrary : "org.hamcrest:hamcrest-library:${v.hamcrest}",
jacksonDatabind : "com.fasterxml.jackson.core:jackson-databind:${v.jackson}",
jaxbRuntime : "org.glassfish.jaxb:jaxb-runtime:${v.jaxb}",
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}",
junit5Engine : "org.junit.jupiter:junit-jupiter-engine:${v.junit5}",
junit5Params : "org.junit.jupiter:junit-jupiter-params:${v.junit5}",
mockitoJunit5 : "org.mockito:mockito-junit-jupiter:${v.mockito}",
mailSmtp : "com.sun.mail:smtp:${v.mail}",
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}",
testcontainersJdbc : "org.testcontainers:jdbc:${v.testcontainers}",
testcontainersJunit : "org.testcontainers:junit-jupiter:${v.testcontainers}",
testcontainersMysql : "org.testcontainers:mysql:${v.testcontainers}",
testcontainersPostgresql: "org.testcontainers:postgresql:${v.testcontainers}",
xmlUnitMatchers : "org.xmlunit:xmlunit-matchers:${v.xmlUnit}",
]
ext {
//noinspection GroovyAssignabilityCheck
deps = libraries + related
//noinspection GroovyAssignabilityCheck
versions = v
}