@@ -217,79 +217,77 @@ dependencies {
217
217
components. all(JacksonAlignmentRule )
218
218
constraints {
219
219
// ensuring brought asm version brought in by spock is up-to-date
220
- testImplementation ' org.ow2. asm:asm:9.3 '
221
- integTestImplementation ' org.ow2. asm:asm:9.3 '
220
+ testImplementation buildLibs . asm
221
+ integTestImplementation buildLibs . asm
222
222
}
223
223
// Forcefully downgrade the jackson platform as used in production
224
- api enforcedPlatform(" com.fasterxml. jackson:jackson-bom: ${ versions.getProperty('jackson') } " )
224
+ api enforcedPlatform(buildLibs . jackson. platform )
225
225
api localGroovy()
226
226
api gradleApi()
227
227
228
228
api " org.elasticsearch:build-conventions:$version "
229
229
api " org.elasticsearch.gradle:build-tools:$version "
230
230
231
231
// same version as http client transitive dep
232
- api ' commons-codec:commons-codec:1.11'
233
- api ' org.apache.commons:commons-compress:1.21'
234
- api ' org.apache.ant:ant:1.10.8'
235
- api ' com.netflix.nebula:gradle-info-plugin:11.3.3'
236
- api ' org.apache.rat:apache-rat:0.11'
237
- api " net.java.dev.jna:jna:${ versions.getProperty('jna')} "
238
- api ' gradle.plugin.com.github.johnrengelman:shadow:7.1.2'
232
+ api buildLibs. commons. codec
233
+ api buildLibs. apache. compress
234
+ api buildLibs. nebula. info
235
+ api buildLibs. apache. rat
236
+ api buildLibs. jna
237
+ api buildLibs. shadow. plugin
239
238
// for our ide tweaking
240
- api ' gradle.plugin.org.jetbrains.gradle.plugin. idea-ext:gradle-idea-ext:1.1.1 '
239
+ api buildLibs . idea. ext
241
240
// When upgrading forbidden apis, ensure dependency version is bumped in ThirdPartyPrecommitPlugin as well
242
- api ' de.thetaphi:forbiddenapis:3.2 '
243
- api ' com.avast.gradle:gradle- docker-compose-plugin:0.14.13 '
244
- api ' org.apache. maven:maven-model:3.6.2 '
241
+ api buildLibs . forbiddenApis
242
+ api buildLibs . docker. compose
243
+ api buildLibs . maven. model
245
244
// needs to match the jackson minor version in use
246
- api ' com.networknt: json- schema-validator:1.0.49 '
247
- api " com.fasterxml. jackson.dataformat:jackson-dataformat-yaml: ${ versions.getProperty('jackson') } "
248
- api ' org.ow2. asm:asm:9.2 '
249
- api ' org.ow2. asm:asm-tree:9.2 '
250
- api " org.apache.httpcomponents: httpclient: ${ versions.getProperty('httpclient') } "
251
- api " org.apache.httpcomponents: httpcore: ${ versions.getProperty('httpcore') } "
252
- compileOnly " com.puppycrawl.tools: checkstyle: ${ versions.getProperty('checkstyle') } "
245
+ api buildLibs . json. schema. validator
246
+ api buildLibs . jackson. dataformat. yaml
247
+ api buildLibs . asm
248
+ api buildLibs . asm. tree
249
+ api buildLibs . httpclient
250
+ api buildLibs . httpcore
251
+ compileOnly buildLibs . checkstyle
253
252
runtimeOnly " org.elasticsearch.gradle:reaper:$version "
254
- testImplementation " com.puppycrawl.tools:checkstyle:${ versions.getProperty('checkstyle')} "
255
- testImplementation ' com.github.tomakehurst:wiremock-jre8-standalone:2.23.2'
256
- testImplementation ' org.mockito:mockito-core:1.9.5'
257
- testImplementation " org.hamcrest:hamcrest:${ versions.getProperty('hamcrest')} "
258
-
253
+ testImplementation buildLibs. checkstyle
254
+ testImplementation buildLibs. wiremock
255
+ testImplementation buildLibs. mockito. core
256
+ testImplementation buildLibs. hamcrest
259
257
testImplementation testFixtures(" org.elasticsearch.gradle:build-tools:$version " )
260
258
261
- testImplementation(platform(" org.junit:junit-bom: ${ versions.getProperty(' junit5') } " ))
262
- testImplementation(" org.junit .jupiter:junit-jupiter " ) {
259
+ testImplementation(platform(buildLibs . junit5. platform ))
260
+ testImplementation(buildLibs . junit5 . jupiter) {
263
261
because ' allows to write and run Jupiter tests'
264
262
}
265
- integTestImplementation(platform(" org.junit:junit-bom: ${ versions.getProperty(' junit5') } " ))
266
- integTestImplementation(" org.junit .jupiter:junit-jupiter " ) {
263
+ integTestImplementation(platform(buildLibs . junit5. platform ))
264
+ integTestImplementation(buildLibs . junit5 . jupiter) {
267
265
because ' allows to write and run Jupiter tests'
268
266
}
269
- integTestImplementation(" net .bytebuddy:byte-buddy:1.12.9 " ) {
267
+ integTestImplementation(buildLibs . bytebuddy) {
270
268
because ' Generating dynamic mocks of internal libraries like JdkJarHell'
271
269
}
272
- testRuntimeOnly(" org.junit .vintage:junit-vintage-engine " ) {
270
+ testRuntimeOnly(buildLibs . junit5 . vintage) {
273
271
because ' allows JUnit 3 and JUnit 4 tests to run'
274
272
}
275
- testRuntimeOnly(" org.junit .platform:junit-platform- launcher" ) {
273
+ testRuntimeOnly(buildLibs . junit5 . platform. launcher) {
276
274
because ' allows tests to run from IDEs that bundle older version of launcher'
277
275
}
278
276
279
- testImplementation platform(" org.spockframework: spock-bom:2.1-groovy-3.0 " )
280
- testImplementation(" org.spockframework: spock- core" ) {
277
+ testImplementation platform(buildLibs . spock. platform )
278
+ testImplementation(buildLibs . spock. core) {
281
279
exclude module : " groovy"
282
280
}
283
- integTestImplementation platform(" org.spockframework: spock-bom:2.1-groovy-3.0 " )
284
- integTestImplementation(" org.spockframework: spock- core" ) {
281
+ integTestImplementation platform(buildLibs . spock. platform )
282
+ integTestImplementation(buildLibs . spock. core) {
285
283
exclude module : " groovy"
286
284
}
287
285
// required as we rely on junit4 rules
288
- integTestImplementation(" org.spockframework: spock- junit4" ) {
286
+ integTestImplementation(buildLibs . spock. junit4) {
289
287
exclude module : " groovy"
290
288
}
291
- testImplementation " org.spockframework: spock- junit4"
292
- integTestImplementation " org .xmlunit:xmlunit-core:2.8.2 "
289
+ testImplementation buildLibs . spock. junit4
290
+ integTestImplementation buildLibs . xmlunit. core
293
291
}
294
292
295
293
tasks. named(' test' ). configure {
0 commit comments