Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Consolidate Dependencies & Cleanup #12780

Merged
merged 3 commits into from
Jul 26, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
49 changes: 36 additions & 13 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -48,41 +48,31 @@ subprojects {
apacheHttpComponentsVersion = "4.5.14"
assertjCoreVersion = '3.26.3'
awaitilityVersion = "4.2.1"
bcryptVersion = "0.10.2"
caffeineVersion = "3.1.8"
checkstyleVersion = "8.45"
commonsCodecVersion = "1.17.1"
commonsIoVersion = "2.16.1"
commonsMathVersion = "3.6.1"
commonsTextVersion = "1.12.0"
databaseRiderVersion = "1.43.0"
dropwizardVersion = "2.1.0"
dropwizardWebsocketsVersion = "1.3.14"
equalsVerifierVersion = "3.16.1"
feignCoreVersion = "13.3"
feignGsonVersion = "13.3"
javaWebSocketVersion = "1.5.7"
feignVersion = "13.3"
gsonVersion = "2.11.0"
guavaVersion = "33.2.1-jre"
hamcrestJsonVersion = "0.3"
hamcrestOptionalVersion = "2.0.0"
hamcrestVersion = "2.0.0.0"
jacksonDataTypeVersion = "2.17.2"
jakartaMailVersion = "2.0.1"
javaWebsocketVersion = "1.5.3"
javaxActivationVersion = "1.1.1"
jaxbApiVersion = "2.3.1"
jaxbCoreVersion = "4.0.5"
javaWebSocketVersion = "1.5.7"
jaxbImplVersion = "4.0.5"
jdbiVersion = "3.45.2"
jetbrainsAnnotationsVersion = "24.1.0"
jlayerVersion = "1.0.1.4"
junitJupiterVersion = "5.10.3"
junitPlatformLauncherVersion = "1.10.3"
logbackClassicVersion = "1.5.6"
mockitoVersion = "5.11.0"
openFeignVersion = "13.3"
postgresqlVersion = "42.7.3"
snakeYamlVersion = "2.7"
sonatypeGoodiesPrefsVersion = "2.3.9"
substanceVersion = "4.5.0"
Expand All @@ -98,16 +88,49 @@ subprojects {
}

dependencies {
implementation ("com.googlecode.soundlibs:jlayer:$jlayerVersion") {
exclude group: 'junit', module: 'junit'
}
implementation "ch.qos.logback:logback-classic:$logbackClassicVersion"
implementation "com.fasterxml.jackson.datatype:jackson-datatype-jsr310:$jacksonDataTypeVersion"
implementation "com.github.ben-manes.caffeine:caffeine:$caffeineVersion"
implementation "com.github.database-rider:rider-junit5:$databaseRiderVersion"
implementation "com.google.code.gson:gson:$gsonVersion"
implementation "com.google.guava:guava:$guavaVersion"
testImplementation "org.assertj:assertj-core:$assertjCoreVersion"
implementation "com.liveperson:dropwizard-websockets:$dropwizardWebsocketsVersion"
implementation "com.sun.mail:jakarta.mail:$jakartaMailVersion"
implementation "com.sun.xml.bind:jaxb-impl:$jaxbImplVersion"
implementation "commons-codec:commons-codec:$commonsCodecVersion"
implementation "commons-io:commons-io:$commonsIoVersion"
implementation "io.github.openfeign:feign-core:$feignVersion"
implementation "io.github.openfeign:feign-gson:$feignVersion"
implementation "org.apache.commons:commons-math3:$commonsMathVersion"
implementation "org.apache.commons:commons-text:$commonsTextVersion"
implementation "org.apache.httpcomponents:httpclient:$apacheHttpComponentsVersion"
implementation "org.apache.httpcomponents:httpmime:$apacheHttpComponentsVersion"
implementation "org.java-websocket:Java-WebSocket:$javaWebSocketVersion"
implementation "org.jetbrains:annotations:$jetbrainsAnnotationsVersion"
implementation "org.knowm.xchart:xchart:$xchartVersion"
implementation "org.pushing-pixels:radiance-substance:$substanceVersion"
implementation "org.snakeyaml:snakeyaml-engine:$snakeYamlVersion"
testImplementation "com.fasterxml.jackson.datatype:jackson-datatype-jsr310:$jacksonDataTypeVersion"
testImplementation "com.fasterxml.jackson.datatype:jackson-datatype-jsr310:$jacksonDataTypeVersion"
testImplementation "com.github.npathai:hamcrest-optional:$hamcrestOptionalVersion"
testImplementation "com.github.tomakehurst:wiremock:$wireMockVersion"
testImplementation "nl.jqno.equalsverifier:equalsverifier:$equalsVerifierVersion"
testImplementation "org.apache.httpcomponents:httpclient:$apacheHttpComponentsVersion"
testImplementation "org.assertj:assertj-core:$assertjCoreVersion"
testImplementation "org.awaitility:awaitility:$awaitilityVersion"
testImplementation "org.hamcrest:java-hamcrest:$hamcrestVersion"
testImplementation "org.junit.jupiter:junit-jupiter-api:$junitJupiterVersion"
testImplementation "org.junit.jupiter:junit-jupiter-params:$junitJupiterVersion"
testImplementation "org.mockito:mockito-core:$mockitoVersion"
testImplementation "org.mockito:mockito-junit-jupiter:$mockitoVersion"
testImplementation "org.mockito:mockito-subclass:$mockitoVersion"
testImplementation "org.sonatype.goodies:goodies-prefs:$sonatypeGoodiesPrefsVersion"
testImplementation "org.xmlunit:xmlunit-core:$xmlUnitCore"
testImplementation "org.xmlunit:xmlunit-matchers:$xmlUnitMatchers"
testImplementation "ru.lanwen.wiremock:wiremock-junit5:$wireMockJunit5Version"
testRuntimeOnly "org.junit.jupiter:junit-jupiter-engine:$junitJupiterVersion"
testRuntimeOnly "org.junit.platform:junit-platform-launcher:$junitPlatformLauncherVersion"
}
Expand Down
17 changes: 0 additions & 17 deletions game-app/game-core/build.gradle
Original file line number Diff line number Diff line change
@@ -1,18 +1,4 @@
dependencies {
implementation ("com.googlecode.soundlibs:jlayer:$jlayerVersion") {
exclude group: 'junit', module: 'junit'
}
implementation "org.jetbrains:annotations:$jetbrainsAnnotationsVersion"
implementation "com.sun.mail:jakarta.mail:$jakartaMailVersion"
implementation "com.sun.xml.bind:jaxb-impl:$jaxbImplVersion"
implementation "commons-codec:commons-codec:$commonsCodecVersion"
implementation "commons-io:commons-io:$commonsIoVersion"
implementation "io.github.openfeign:feign-gson:$openFeignVersion"
implementation "org.apache.commons:commons-math3:$commonsMathVersion"
implementation "org.apache.commons:commons-text:$commonsTextVersion"
implementation "org.apache.httpcomponents:httpclient:$apacheHttpComponentsVersion"
implementation "org.apache.httpcomponents:httpmime:$apacheHttpComponentsVersion"
implementation "org.knowm.xchart:xchart:$xchartVersion"
implementation project(":game-app:domain-data")
implementation project(":game-app:map-data")
implementation project(":game-app:game-relay-server")
Expand All @@ -23,11 +9,8 @@ dependencies {
implementation project(":lib:swing-lib")
implementation project(":lib:websocket-client")
implementation project(":lib:xml-reader")
testImplementation "org.awaitility:awaitility:$awaitilityVersion"
testImplementation "org.sonatype.goodies:goodies-prefs:$sonatypeGoodiesPrefsVersion"
testImplementation project(":lib:swing-lib-test-support")
testImplementation project(":lib:test-common")
// Configures mockito to use the legacy "subclass mock maker"
// see https://github.com/mockito/mockito/releases/tag/v5.0.0 for more information
testImplementation "org.mockito:mockito-subclass:$mockitoVersion"
}
3 changes: 0 additions & 3 deletions game-app/game-headed/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@ ext {
}

dependencies {
implementation "io.github.openfeign:feign-gson:$openFeignVersion"
implementation "org.pushing-pixels:radiance-substance:$substanceVersion"
implementation project(":game-app:ai")
implementation project(":game-app:domain-data")
implementation project(":game-app:game-core")
Expand All @@ -27,7 +25,6 @@ dependencies {
implementation project(":lib:java-extras")
implementation project(":lib:swing-lib")
implementation project(":lib:websocket-client")
testImplementation "org.sonatype.goodies:goodies-prefs:$sonatypeGoodiesPrefsVersion"
testImplementation project(":lib:test-common")
}

Expand Down
2 changes: 0 additions & 2 deletions game-app/game-relay-server/build.gradle
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
dependencies {
implementation "org.java-websocket:Java-WebSocket:$javaWebSocketVersion"
implementation project(":lib:websocket-client")
implementation project(":lib:websocket-server")
testImplementation "org.awaitility:awaitility:$awaitilityVersion"
testImplementation project(":lib:test-common")
}
3 changes: 0 additions & 3 deletions game-app/map-data/build.gradle
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
dependencies {
implementation "com.sun.xml.bind:jaxb-impl:$jaxbImplVersion"
implementation project(":lib:java-extras")
implementation project(":lib:xml-reader")
testImplementation "org.xmlunit:xmlunit-core:$xmlUnitCore"
testImplementation "org.xmlunit:xmlunit-matchers:$xmlUnitMatchers"
}
1 change: 0 additions & 1 deletion game-app/smoke-testing/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ dependencies {
testImplementation project(":game-app:game-headless")
testImplementation project(":lib:java-extras")
testImplementation project(":lib:test-common")
testImplementation "org.sonatype.goodies:goodies-prefs:$sonatypeGoodiesPrefsVersion"
}

test {
Expand Down
4 changes: 2 additions & 2 deletions http-clients/game-support-server/build.gradle
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
dependencies {
implementation "io.github.openfeign:feign-core:$feignCoreVersion"
implementation "io.github.openfeign:feign-gson:$feignGsonVersion"
implementation "io.github.openfeign:feign-core:$feignVersion"
implementation "io.github.openfeign:feign-gson:$feignVersion"
implementation project(":lib:feign-common")
implementation project(":lib:http-client-lib")
implementation project(":lib:java-extras")
Expand Down
6 changes: 0 additions & 6 deletions http-clients/lobby-client/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,19 +6,13 @@ plugins {
version = System.getenv("JAR_VERSION")

dependencies {
implementation "io.github.openfeign:feign-core:$feignCoreVersion"
implementation project(":game-app:domain-data")
implementation project(":lib:feign-common")
implementation project(":lib:java-extras")
implementation project(":lib:websocket-client")
testImplementation "com.fasterxml.jackson.datatype:jackson-datatype-jsr310:$jacksonDataTypeVersion"
testImplementation "com.google.code.gson:gson:$gsonVersion"
testImplementation "ru.lanwen.wiremock:wiremock-junit5:$wireMockJunit5Version"
testImplementation "org.apache.httpcomponents:httpclient:$apacheHttpComponentsVersion"
testImplementation project(":lib:test-common")
}


def getGitCommitCount = { ->
def stdout = new ByteArrayOutputStream()
exec {
Expand Down
2 changes: 0 additions & 2 deletions http-clients/maps-server/build.gradle
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
dependencies {
implementation "io.github.openfeign:feign-core:$feignCoreVersion"
implementation "io.github.openfeign:feign-gson:$feignGsonVersion"
implementation project(":lib:feign-common")
implementation project(":lib:http-client-lib")
implementation project(":lib:java-extras")
Expand Down
6 changes: 0 additions & 6 deletions lib/feign-common/build.gradle
Original file line number Diff line number Diff line change
@@ -1,11 +1,5 @@
dependencies {
implementation "com.google.code.gson:gson:$gsonVersion"
implementation "io.github.openfeign:feign-core:$feignCoreVersion"
implementation "io.github.openfeign:feign-gson:$feignGsonVersion"
implementation project(":game-app:domain-data")
implementation project(":lib:java-extras")
testImplementation "com.fasterxml.jackson.datatype:jackson-datatype-jsr310:$jacksonDataTypeVersion"
testImplementation "com.github.tomakehurst:wiremock:$wireMockVersion"
testImplementation "ru.lanwen.wiremock:wiremock-junit5:$wireMockJunit5Version"
testImplementation project(":lib:test-common")
}
4 changes: 0 additions & 4 deletions lib/java-extras/build.gradle
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
description = "TripleA library for low-level helper APIs, ie: syntactic sugar"

dependencies {
implementation "com.github.ben-manes.caffeine:caffeine:$caffeineVersion"
implementation "org.apache.httpcomponents:httpclient:$apacheHttpComponentsVersion"
implementation "org.snakeyaml:snakeyaml-engine:$snakeYamlVersion"
implementation "commons-io:commons-io:$commonsIoVersion"
testImplementation project(":lib:test-common")
}
1 change: 0 additions & 1 deletion lib/swing-lib/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,5 @@ description = "TripleA library for utilities and components that depend only on

dependencies {
implementation project(":lib:java-extras")
testImplementation "org.awaitility:awaitility:$awaitilityVersion"
testImplementation project(":lib:test-common")
}
3 changes: 0 additions & 3 deletions lib/test-common/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,6 @@ description = "Test utility library, generic test utilities useful for TripleA p

dependencies {
implementation "com.fasterxml.jackson.datatype:jackson-datatype-jsr310:$jacksonDataTypeVersion"
implementation "com.github.database-rider:rider-junit5:$databaseRiderVersion"
implementation "org.hamcrest:java-hamcrest:$hamcrestVersion"
implementation "org.jdbi:jdbi3-core:$jdbiVersion"
implementation "org.jdbi:jdbi3-sqlobject:$jdbiVersion"
implementation "org.junit.jupiter:junit-jupiter-api:$junitJupiterVersion"
}
1 change: 0 additions & 1 deletion lib/websocket-client/build.gradle
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
dependencies {
implementation "com.google.code.gson:gson:$gsonVersion"
implementation project(":lib:java-extras")
}
4 changes: 0 additions & 4 deletions lib/websocket-server/build.gradle
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
dependencies {
implementation "com.github.ben-manes.caffeine:caffeine:$caffeineVersion"
implementation "com.google.code.gson:gson:$gsonVersion"
implementation "com.liveperson:dropwizard-websockets:$dropwizardWebsocketsVersion"
implementation "org.java-websocket:Java-WebSocket:$javaWebSocketVersion"
implementation project(":lib:feign-common")
implementation project(":lib:java-extras")
implementation project(":lib:websocket-client")
Expand Down