-
Notifications
You must be signed in to change notification settings - Fork 13
/
dependencies.gradle
77 lines (71 loc) · 3.82 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
/*
* Copyright 2022 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.
*/
static String versionOf(String dependencySpec) {
return dependencySpec.split(':').last()
}
final Map<String, String> libraries = [
// Dependabot will parse these.
// Keep plaintext versions here so Dependabot can parse the versions; don't interpolate version variables here
// because Dependabot is not smart enough to understand those.
ant : 'org.apache.ant:ant:1.10.15',
classgraph : 'io.github.classgraph:classgraph:4.8.179',
commonsLang : 'org.apache.commons:commons-lang3:3.17.0',
commonsText : 'org.apache.commons:commons-text:1.13.0',
dom4j : 'org.dom4j:dom4j:2.1.4',
glassfish : 'org.glassfish:jakarta.el:4.0.2',
groovy : 'org.apache.groovy:groovy:4.0.24',
guava : 'com.google.guava:guava:33.4.0-jre',
hibernateValidator: 'org.hibernate.validator:hibernate-validator:8.0.2.Final',
jacksonCore : 'com.fasterxml.jackson.core:jackson-core:2.18.2',
jcommander : 'com.beust:jcommander:1.82',
jhighlight : 'org.codelibs:jhighlight:1.1.0',
jsonFluent : 'net.javacrumbs.json-unit:json-unit-fluent:4.1.0',
junitJupiterApi : 'org.junit.jupiter:junit-jupiter-api:5.11.4',
lombok : 'org.projectlombok:lombok:1.18.36',
mockito : 'org.mockito:mockito-core:5.15.2',
okio : 'com.squareup.okio:okio:1.17.6',
pluginApi : 'cd.go.plugin:go-plugin-api:24.4.0',
reflections : 'org.reflections:reflections:0.10.2',
retrofit : 'com.squareup.retrofit2:retrofit:2.11.0',
slf4j : 'org.slf4j:slf4j-simple:2.0.16',
validateApi : 'jakarta.validation:jakarta.validation-api:3.1.0',
]
// Parse some versions that are shared with related deps; this way we can DRY and keep these adjunct deps
// up-to-date.
final String groovyVersion = versionOf(libraries.groovy)
final String hibernateVersion = versionOf(libraries.hibernateValidator)
final String jacksonVersion = versionOf(libraries.jacksonCore)
final String junitJupiterVersion = versionOf(libraries.junitJupiterApi)
final String retrofitVersion = versionOf(libraries.retrofit)
// RELATED: these deps share versions with others; we put these after the main deps because Dependabot cannot parse
// interpolated versions. When Dependabot updates the parent dependency, these will get updated for free too.
libraries.groovyJson = "org.apache.groovy:groovy-json:${groovyVersion}"
libraries.hibernateValidatorAnnotationProcessor = "org.hibernate.validator:hibernate-validator-annotation-processor:${hibernateVersion}"
libraries.jacksonAnnotations = "com.fasterxml.jackson.core:jackson-annotations:${jacksonVersion}"
libraries.jacksonDatabind = "com.fasterxml.jackson.core:jackson-databind:${jacksonVersion}"
libraries.junitJupiterEngine = "org.junit.jupiter:junit-jupiter-engine:${junitJupiterVersion}"
libraries.junitJupiterParams = "org.junit.jupiter:junit-jupiter-params:${junitJupiterVersion}"
libraries.retrofitJacksonConv = "com.squareup.retrofit2:converter-jackson:${retrofitVersion}"
// Export versions that are needed outside of this file
final Map<String, String> versions = [
groovyVersion: groovyVersion
]
ext {
//noinspection GroovyAssignabilityCheck
deps = libraries
//noinspection GroovyAssignabilityCheck
vers = versions
}