|
@@ -217,11 +217,11 @@ dependencies {
|
|
|
components.all(JacksonAlignmentRule)
|
|
|
constraints {
|
|
|
// ensuring brought asm version brought in by spock is up-to-date
|
|
|
- testImplementation 'org.ow2.asm:asm:9.3'
|
|
|
- integTestImplementation 'org.ow2.asm:asm:9.3'
|
|
|
+ testImplementation buildLibs.asm
|
|
|
+ integTestImplementation buildLibs.asm
|
|
|
}
|
|
|
// Forcefully downgrade the jackson platform as used in production
|
|
|
- api enforcedPlatform("com.fasterxml.jackson:jackson-bom:${versions.getProperty('jackson')}")
|
|
|
+ api enforcedPlatform(buildLibs.jackson.platform)
|
|
|
api localGroovy()
|
|
|
api gradleApi()
|
|
|
|
|
@@ -229,67 +229,65 @@ dependencies {
|
|
|
api "org.elasticsearch.gradle:build-tools:$version"
|
|
|
|
|
|
// same version as http client transitive dep
|
|
|
- api 'commons-codec:commons-codec:1.11'
|
|
|
- api 'org.apache.commons:commons-compress:1.21'
|
|
|
- api 'org.apache.ant:ant:1.10.8'
|
|
|
- api 'com.netflix.nebula:gradle-info-plugin:11.3.3'
|
|
|
- api 'org.apache.rat:apache-rat:0.11'
|
|
|
- api "net.java.dev.jna:jna:${versions.getProperty('jna')}"
|
|
|
- api 'gradle.plugin.com.github.johnrengelman:shadow:7.1.2'
|
|
|
+ api buildLibs.commons.codec
|
|
|
+ api buildLibs.apache.compress
|
|
|
+ api buildLibs.nebula.info
|
|
|
+ api buildLibs.apache.rat
|
|
|
+ api buildLibs.jna
|
|
|
+ api buildLibs.shadow.plugin
|
|
|
// for our ide tweaking
|
|
|
- api 'gradle.plugin.org.jetbrains.gradle.plugin.idea-ext:gradle-idea-ext:1.1.1'
|
|
|
+ api buildLibs.idea.ext
|
|
|
// When upgrading forbidden apis, ensure dependency version is bumped in ThirdPartyPrecommitPlugin as well
|
|
|
- api 'de.thetaphi:forbiddenapis:3.2'
|
|
|
- api 'com.avast.gradle:gradle-docker-compose-plugin:0.14.13'
|
|
|
- api 'org.apache.maven:maven-model:3.6.2'
|
|
|
+ api buildLibs.forbiddenApis
|
|
|
+ api buildLibs.docker.compose
|
|
|
+ api buildLibs.maven.model
|
|
|
// needs to match the jackson minor version in use
|
|
|
- api 'com.networknt:json-schema-validator:1.0.49'
|
|
|
- api "com.fasterxml.jackson.dataformat:jackson-dataformat-yaml:${versions.getProperty('jackson')}"
|
|
|
- api 'org.ow2.asm:asm:9.2'
|
|
|
- api 'org.ow2.asm:asm-tree:9.2'
|
|
|
- api "org.apache.httpcomponents:httpclient:${versions.getProperty('httpclient')}"
|
|
|
- api "org.apache.httpcomponents:httpcore:${versions.getProperty('httpcore')}"
|
|
|
- compileOnly "com.puppycrawl.tools:checkstyle:${versions.getProperty('checkstyle')}"
|
|
|
+ api buildLibs.json.schema.validator
|
|
|
+ api buildLibs.jackson.dataformat.yaml
|
|
|
+ api buildLibs.asm
|
|
|
+ api buildLibs.asm.tree
|
|
|
+ api buildLibs.httpclient
|
|
|
+ api buildLibs.httpcore
|
|
|
+ compileOnly buildLibs.checkstyle
|
|
|
runtimeOnly "org.elasticsearch.gradle:reaper:$version"
|
|
|
- testImplementation "com.puppycrawl.tools:checkstyle:${versions.getProperty('checkstyle')}"
|
|
|
- testImplementation 'com.github.tomakehurst:wiremock-jre8-standalone:2.23.2'
|
|
|
- testImplementation 'org.mockito:mockito-core:1.9.5'
|
|
|
- testImplementation "org.hamcrest:hamcrest:${versions.getProperty('hamcrest')}"
|
|
|
-
|
|
|
+ testImplementation buildLibs.checkstyle
|
|
|
+ testImplementation buildLibs.wiremock
|
|
|
+ testImplementation buildLibs.mockito.core
|
|
|
+ testImplementation buildLibs.hamcrest
|
|
|
testImplementation testFixtures("org.elasticsearch.gradle:build-tools:$version")
|
|
|
|
|
|
- testImplementation(platform("org.junit:junit-bom:${versions.getProperty('junit5')}"))
|
|
|
- testImplementation("org.junit.jupiter:junit-jupiter") {
|
|
|
+ testImplementation(platform(buildLibs.junit5.platform))
|
|
|
+ testImplementation(buildLibs.junit5.jupiter) {
|
|
|
because 'allows to write and run Jupiter tests'
|
|
|
}
|
|
|
- integTestImplementation(platform("org.junit:junit-bom:${versions.getProperty('junit5')}"))
|
|
|
- integTestImplementation("org.junit.jupiter:junit-jupiter") {
|
|
|
+ integTestImplementation(platform(buildLibs.junit5.platform))
|
|
|
+ integTestImplementation(buildLibs.junit5.jupiter) {
|
|
|
because 'allows to write and run Jupiter tests'
|
|
|
}
|
|
|
- integTestImplementation("net.bytebuddy:byte-buddy:1.12.9") {
|
|
|
+ integTestImplementation(buildLibs.bytebuddy) {
|
|
|
because 'Generating dynamic mocks of internal libraries like JdkJarHell'
|
|
|
}
|
|
|
- testRuntimeOnly("org.junit.vintage:junit-vintage-engine") {
|
|
|
+ testRuntimeOnly(buildLibs.junit5.vintage) {
|
|
|
because 'allows JUnit 3 and JUnit 4 tests to run'
|
|
|
}
|
|
|
- testRuntimeOnly("org.junit.platform:junit-platform-launcher") {
|
|
|
+ testRuntimeOnly(buildLibs.junit5.platform.launcher) {
|
|
|
because 'allows tests to run from IDEs that bundle older version of launcher'
|
|
|
}
|
|
|
|
|
|
- testImplementation platform("org.spockframework:spock-bom:2.1-groovy-3.0")
|
|
|
- testImplementation("org.spockframework:spock-core") {
|
|
|
+ testImplementation platform(buildLibs.spock.platform)
|
|
|
+ testImplementation(buildLibs.spock.core) {
|
|
|
exclude module: "groovy"
|
|
|
}
|
|
|
- integTestImplementation platform("org.spockframework:spock-bom:2.1-groovy-3.0")
|
|
|
- integTestImplementation("org.spockframework:spock-core") {
|
|
|
+ integTestImplementation platform(buildLibs.spock.platform)
|
|
|
+ integTestImplementation(buildLibs.spock.core) {
|
|
|
exclude module: "groovy"
|
|
|
}
|
|
|
// required as we rely on junit4 rules
|
|
|
- integTestImplementation("org.spockframework:spock-junit4") {
|
|
|
+ integTestImplementation(buildLibs.spock.junit4) {
|
|
|
exclude module: "groovy"
|
|
|
}
|
|
|
- testImplementation "org.spockframework:spock-junit4"
|
|
|
- integTestImplementation "org.xmlunit:xmlunit-core:2.8.2"
|
|
|
+ testImplementation buildLibs.spock.junit4
|
|
|
+ integTestImplementation buildLibs.xmlunit.core
|
|
|
}
|
|
|
|
|
|
tasks.named('test').configure {
|