Skip to content

Commit 0792611

Browse files
committed
build: update plugins and dependencies
Release-As: 6.0.2
1 parent 1116f72 commit 0792611

File tree

22 files changed

+170
-269
lines changed

22 files changed

+170
-269
lines changed

.vogue.yml

Lines changed: 0 additions & 9 deletions
This file was deleted.

build.gradle

Lines changed: 49 additions & 100 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
plugins {
2+
id "com.github.mxenabled.coppuccino" version "6.+" apply false
3+
id "com.github.mxenabled.vogue" version "3.+"
24
id "idea"
3-
id "com.github.mxenabled.coppuccino" version "5.+" apply false
4-
id "com.github.mxenabled.vogue" version "2.+"
55
id "io.freefair.lombok" version "8.+" apply false
66
id "io.github.gradle-nexus.publish-plugin" version "1.1.+"
77
}
@@ -29,92 +29,81 @@ allprojects {
2929
group "com.mx.path-core"
3030
description "MX Path Core"
3131
version rootProject.version
32-
sourceCompatibility = JavaVersion.VERSION_17
33-
targetCompatibility = JavaVersion.VERSION_17
32+
33+
java {
34+
toolchain {
35+
languageVersion = JavaLanguageVersion.of(17)
36+
}
37+
}
3438

3539
repositories {
3640
mavenCentral()
3741
mavenLocal()
3842
}
39-
40-
configurations.configureEach {
41-
resolutionStrategy.eachDependency { details ->
42-
//Uncontrolled Recursion [High Severity][https://security.snyk.io/vuln/SNYK-JAVA-ORGAPACHECOMMONS-10734078] in org.apache.commons:commons-lang3@3.17.0
43-
// introduced by net.sourceforge.pmd:pmd-java@7.16.0 > org.apache.commons:commons-lang3@3.17.0 and 7 other path(s)
44-
// This issue was fixed in versions: 3.18.0
45-
if (details.requested.group == "org.apache.commons" && details.requested.name == "commons-lang3") {
46-
details.useVersion "3.18.0"
47-
}
48-
//Improper Validation of Certificate with Host Mismatch [Medium Severity][https://security.snyk.io/vuln/SNYK-JAVA-ORGAPACHELOGGINGLOG4J-14532782] in org.apache.logging.log4j:log4j-core@2.25.2
49-
// introduced by com.github.spotbugs:spotbugs@4.9.8 > org.apache.logging.log4j:log4j-core@2.25.2
50-
// This issue was fixed in versions: 2.25.3
51-
else if (details.requested.group == "org.apache.logging.log4j" && details.requested.name == "log4j-core") {
52-
details.useVersion "2.25.3"
53-
}
54-
}
55-
resolutionStrategy.cacheChangingModulesFor 0, "seconds"
56-
}
5743
}
5844

5945
subprojects {
6046
if (it.name != platformProject) {
61-
apply plugin: "java-library"
62-
apply plugin: "groovy"
6347
apply plugin: "com.github.mxenabled.coppuccino"
6448
apply plugin: "com.github.mxenabled.vogue"
49+
apply plugin: "groovy"
50+
apply plugin: "java-library"
6551
apply plugin: "io.freefair.lombok"
6652

53+
java {
54+
withSourcesJar()
55+
withJavadocJar()
56+
}
57+
58+
coppuccino {
59+
rootDir = "${projectDir}/"
60+
}
61+
62+
vogue {
63+
dependencyUpdatesOutputDir = "${projectDir}/build/dependencyUpdates"
64+
}
65+
6766
ext {
6867
mockitoVersion = "[5.0,6.0)"
6968
spockVersion = "2.4-M6-groovy-3.0"
7069
junitVersion = "5.14.0"
70+
openTracingVersion = "[0.33,0.34)"
71+
slf4jVersion = "1.7.30"
7172
}
7273

7374
dependencies {
7475
constraints {
75-
api("com.google.code.gson:gson") {
76-
version {
77-
require "[2.13.0,13.0.0)"
78-
}
79-
}
80-
api("io.opentracing:opentracing-api") {
81-
version {
82-
require "[0.33,0.34)"
83-
}
84-
}
85-
api("io.opentracing:opentracing-noop") {
86-
version {
87-
require "[0.33,0.34)"
88-
}
89-
}
90-
api("io.opentracing:opentracing-util") {
91-
version {
92-
require "[0.33,0.34)"
93-
}
94-
}
95-
api("com.google.guava:guava") {
96-
version {
97-
require "[32.0,33.0)"
98-
}
99-
}
100-
api("com.github.rholder:guava-retrying") {
101-
version {
102-
require "[2.0,3.0)"
103-
}
104-
}
76+
// --- Shared Libraries ---
77+
api "com.google.code.gson:gson:[2.13.0,3.0.0)"
78+
api "io.opentracing:opentracing-api:${project.ext.openTracingVersion}"
79+
api "io.opentracing:opentracing-noop:${project.ext.openTracingVersion}"
80+
api "io.opentracing:opentracing-util:${project.ext.openTracingVersion}"
81+
api "com.google.guava:guava:[32.0,33.0)"
82+
api "com.github.rholder:guava-retrying:[2.0,3.0)"
83+
10584
api "com.datadoghq:dd-trace-api:1.38.0"
106-
api "org.slf4j:slf4j-api:1.7.30"
107-
api "org.apache.httpcomponents:httpclient:4.5.13"
85+
api "org.apache.httpcomponents:httpclient:4.5.14"
86+
api "org.slf4j:slf4j-api:${project.ext.slf4jVersion}"
10887

10988
// -----------------------------------------------------------------
11089
// These re-add JAXB classes needed for SOAP interaction.
11190
// Version changes to any of these need to be tested (not just built)
112-
// with an apps that use SOAP.
91+
// with an app that uses SOAP.
11392
// -----------------------------------------------------------------
11493
api "jakarta.xml.bind:jakarta.xml.bind-api:4.0.4!!"
11594
api "jakarta.xml.soap:jakarta.xml.soap-api:3.0.2!!"
11695
api "com.sun.xml.bind:jaxb-impl:4.0.6!!"
11796
api "org.glassfish.jaxb:jaxb-runtime:4.0.6!!"
97+
98+
// --- Shared Testing Libraries ---
99+
api "io.opentracing:opentracing-mock:${project.ext.openTracingVersion}"
100+
api "org.slf4j:slf4j-simple:${project.ext.slf4jVersion}"
101+
102+
// --- Security Overrides ---
103+
// Pulled in by org.apache.httpcomponents:httpclient:4.5.14
104+
api("commons-codec:commons-codec:1.14") {
105+
because "Fixes Low Severity vulnerability SNYK-JAVA-COMMONSCODEC-561518"
106+
}
118107
}
119108

120109
testImplementation "org.mockito:mockito-inline:${project.ext.mockitoVersion}"
@@ -134,40 +123,14 @@ subprojects {
134123
}
135124
}
136125

137-
coppuccino {
138-
rootDir = "${projectDir}/"
139-
}
140-
141-
vogue {
142-
dependencyUpdatesOutputDir = "${projectDir}/build/dependencyUpdates"
143-
}
144-
145-
task sourcesJar(type: Jar, dependsOn: classes) {
146-
classifier = "sources"
147-
from sourceSets.main.allSource
148-
}
149-
150-
task packageJavadoc(type: Jar) {
151-
classifier = "javadoc"
152-
from javadoc
153-
}
154-
155-
artifacts {
156-
archives sourcesJar
157-
archives jar
158-
archives packageJavadoc
159-
}
160-
161126
if (publishedProjects.contains(it.name)) {
162127
apply plugin: "maven-publish"
163128
apply plugin: "signing"
164129

165130
publishing {
166131
publications {
167132
maven(MavenPublication) {
168-
from components.java
169-
artifact sourcesJar
170-
artifact packageJavadoc
133+
from(it.name == platformProject ? components.javaPlatform : components.java)
171134

172135
pom {
173136
groupId = project.group
@@ -232,25 +195,11 @@ nexusPublishing {
232195
}
233196

234197
task spotlessApply {
235-
subprojects.each {
236-
if (it.name != platformProject) {
237-
it.afterEvaluate {
238-
def spotlessApplyTask = it.tasks.findByName("spotlessApply")
239-
dependsOn(spotlessApplyTask)
240-
}
241-
}
242-
}
198+
dependsOn subprojects.findAll { it.name != platformProject }.collect { "${it.path}:spotlessApply" }
243199
}
244200

245201
task subdependencies {
246-
subprojects.each {
247-
if (it.name != platformProject) {
248-
it.afterEvaluate {
249-
def dependenciesTask = it.tasks.findByName("dependencies")
250-
dependsOn(dependenciesTask)
251-
}
252-
}
253-
}
202+
dependsOn subprojects.findAll { it.name != platformProject }.collect { "${it.path}:dependencies" }
254203
}
255204

256205
project.tasks.getByPath("dependencies").finalizedBy("subdependencies")

common/build.gradle

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,12 @@ coppuccino {
55
}
66

77
dependencies {
8-
api "org.apache.commons:commons-text:latest.release" // For string manipulation utilities. There is a very small overlap with Guava's strings class, but adds many more features.
8+
api "org.apache.commons:commons-text:1.15.0" // For string manipulation utilities
99
api "com.google.guava:guava"
1010
api "com.github.rholder:guava-retrying" // For Request retries
11-
api "com.github.spotbugs:spotbugs-annotations:4.9.8" // For annotating classes and methods to suppress SpotBugs violations
1211
api "com.google.code.gson:gson"
1312
api "org.yaml:snakeyaml:2.4"
14-
implementation "org.slf4j:slf4j-api"
13+
1514
implementation "org.objenesis:objenesis:3.3"
16-
testImplementation "org.objenesis:objenesis:3.3"
15+
implementation "org.slf4j:slf4j-api"
1716
}

common/gradle.lockfile

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# This file is expected to be part of source control.
44
com.github.oowekyala.ooxml:nice-xml-messages:3.1=pmd
55
com.github.rholder:guava-retrying:2.0.0=compileClasspath,runtimeClasspath,testCompileClasspath,testRuntimeClasspath
6-
com.github.spotbugs:spotbugs-annotations:4.9.8=compileClasspath,runtimeClasspath,spotbugs,testCompileClasspath,testRuntimeClasspath
6+
com.github.spotbugs:spotbugs-annotations:4.9.8=compileClasspath,spotbugs,testCompileClasspath
77
com.github.spotbugs:spotbugs:4.9.8=spotbugs
88
com.github.stephenc.jcip:jcip-annotations:1.0-1=spotbugs
99
com.google.code.findbugs:jsr305:3.0.2=checkstyle,compileClasspath,runtimeClasspath,spotbugs,testCompileClasspath,testRuntimeClasspath
@@ -37,7 +37,9 @@ net.sourceforge.pmd:pmd-java:7.16.0=pmd
3737
org.antlr:antlr4-runtime:4.13.2=checkstyle
3838
org.antlr:antlr4-runtime:4.9.3=pmd
3939
org.apache.bcel:bcel:6.11.0=spotbugs
40-
org.apache.commons:commons-lang3:3.18.0=checkstyle,compileClasspath,pmd,runtimeClasspath,spotbugs,testCompileClasspath,testRuntimeClasspath
40+
org.apache.commons:commons-lang3:3.18.0=checkstyle,pmd
41+
org.apache.commons:commons-lang3:3.19.0=spotbugs
42+
org.apache.commons:commons-lang3:3.20.0=compileClasspath,runtimeClasspath,testCompileClasspath,testRuntimeClasspath
4143
org.apache.commons:commons-text:1.14.0=spotbugs
4244
org.apache.commons:commons-text:1.15.0=compileClasspath,runtimeClasspath,testCompileClasspath,testRuntimeClasspath
4345
org.apache.commons:commons-text:1.3=checkstyle
@@ -73,7 +75,7 @@ org.jspecify:jspecify:1.0.0=checkstyle
7375
org.junit.jupiter:junit-jupiter-api:5.14.0=testCompileClasspath,testRuntimeClasspath
7476
org.junit.platform:junit-platform-commons:1.14.0=testCompileClasspath,testRuntimeClasspath
7577
org.junit.platform:junit-platform-engine:1.14.0=testCompileClasspath,testRuntimeClasspath
76-
org.junit:junit-bom:5.14.0=runtimeClasspath,spotbugs,testCompileClasspath,testRuntimeClasspath
78+
org.junit:junit-bom:5.14.0=spotbugs,testCompileClasspath,testRuntimeClasspath
7779
org.mockito:mockito-core:5.2.0=testCompileClasspath,testRuntimeClasspath
7880
org.mockito:mockito-inline:5.2.0=testCompileClasspath,testRuntimeClasspath
7981
org.objenesis:objenesis:3.3=compileClasspath,runtimeClasspath,testCompileClasspath,testRuntimeClasspath

context/gradle.lockfile

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ com.fasterxml.jackson.core:jackson-databind:2.21.0=runtimeClasspath,testRuntimeC
88
com.fasterxml.jackson:jackson-bom:2.21.0=runtimeClasspath,testRuntimeClasspath
99
com.github.oowekyala.ooxml:nice-xml-messages:3.1=pmd
1010
com.github.rholder:guava-retrying:2.0.0=compileClasspath,runtimeClasspath,testCompileClasspath,testRuntimeClasspath
11-
com.github.spotbugs:spotbugs-annotations:4.9.8=compileClasspath,runtimeClasspath,spotbugs,testCompileClasspath,testRuntimeClasspath
11+
com.github.spotbugs:spotbugs-annotations:4.9.8=compileClasspath,spotbugs,testCompileClasspath
1212
com.github.spotbugs:spotbugs:4.9.8=spotbugs
1313
com.github.stephenc.jcip:jcip-annotations:1.0-1=spotbugs
1414
com.google.code.findbugs:jsr305:3.0.2=checkstyle,compileClasspath,runtimeClasspath,spotbugs,testCompileClasspath,testRuntimeClasspath
@@ -46,7 +46,9 @@ net.sourceforge.pmd:pmd-java:7.16.0=pmd
4646
org.antlr:antlr4-runtime:4.13.2=checkstyle
4747
org.antlr:antlr4-runtime:4.9.3=pmd
4848
org.apache.bcel:bcel:6.11.0=spotbugs
49-
org.apache.commons:commons-lang3:3.18.0=checkstyle,compileClasspath,pmd,runtimeClasspath,spotbugs,testCompileClasspath,testRuntimeClasspath
49+
org.apache.commons:commons-lang3:3.18.0=checkstyle,pmd
50+
org.apache.commons:commons-lang3:3.19.0=spotbugs
51+
org.apache.commons:commons-lang3:3.20.0=compileClasspath,runtimeClasspath,testCompileClasspath,testRuntimeClasspath
5052
org.apache.commons:commons-text:1.14.0=spotbugs
5153
org.apache.commons:commons-text:1.15.0=compileClasspath,runtimeClasspath,testCompileClasspath,testRuntimeClasspath
5254
org.apache.commons:commons-text:1.3=checkstyle
@@ -82,7 +84,7 @@ org.jspecify:jspecify:1.0.0=checkstyle
8284
org.junit.jupiter:junit-jupiter-api:5.14.0=testCompileClasspath,testRuntimeClasspath
8385
org.junit.platform:junit-platform-commons:1.14.0=testCompileClasspath,testRuntimeClasspath
8486
org.junit.platform:junit-platform-engine:1.14.0=testCompileClasspath,testRuntimeClasspath
85-
org.junit:junit-bom:5.14.0=runtimeClasspath,spotbugs,testCompileClasspath,testRuntimeClasspath
87+
org.junit:junit-bom:5.14.0=spotbugs,testCompileClasspath,testRuntimeClasspath
8688
org.mockito:mockito-core:5.2.0=testCompileClasspath,testRuntimeClasspath
8789
org.mockito:mockito-inline:5.2.0=testCompileClasspath,testRuntimeClasspath
8890
org.objenesis:objenesis:3.3=runtimeClasspath,testRuntimeClasspath

gateway-generator/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ dependencies {
22
implementation project(":gateway")
33

44
implementation "com.squareup:javapoet:1.13.0"
5-
implementation "com.google.auto.service:auto-service:1.1.1"
6-
implementation "org.projectlombok:lombok:1.18.24"
75

6+
// Compiles the auto-service annotations and runs the processor
7+
compileOnly "com.google.auto.service:auto-service:1.1.1"
88
annotationProcessor "com.google.auto.service:auto-service:1.1.1"
99
}

0 commit comments

Comments
 (0)