Skip to content

Commit

Permalink
Merge pull request #179 from alkum/gradle-consolidate-guava-lib-version
Browse files Browse the repository at this point in the history
Consolidate guava lib version
  • Loading branch information
chimp1984 authored Mar 30, 2022
2 parents ef11787 + 9d5c23d commit fabb774
Show file tree
Hide file tree
Showing 25 changed files with 26 additions and 24 deletions.
2 changes: 1 addition & 1 deletion account/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ dependencies {
implementation project(':network')

implementation 'com.google.protobuf:protobuf-java'
implementation 'com.google.guava:guava'
implementation libs.guava
}
test {
useJUnitPlatform()
Expand Down
2 changes: 1 addition & 1 deletion application/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ dependencies {
implementation project(':wallets')

implementation 'com.google.protobuf:protobuf-java'
implementation 'com.google.guava:guava'
implementation libs.guava
implementation 'com.typesafe:config'
}

Expand Down
2 changes: 1 addition & 1 deletion common/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ dependencies {
api platform(project(':platforms:common-platform'))

implementation 'com.google.protobuf:protobuf-java'
implementation 'com.google.guava:guava'
implementation libs.guava
implementation 'com.typesafe:config'
implementation 'org.jetbrains:annotations:23.0.0'
}
Expand Down
2 changes: 1 addition & 1 deletion contract/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ dependencies {
implementation project(':network')

implementation 'com.google.protobuf:protobuf-java'
implementation 'com.google.guava:guava'
implementation libs.guava
}

test {
Expand Down
2 changes: 1 addition & 1 deletion desktop/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ dependencies {
implementation project(':wallets')

implementation 'com.google.protobuf:protobuf-java'
implementation 'com.google.guava:guava'
implementation libs.guava

implementation 'com.jfoenix:jfoenix:9.0.10'
implementation 'de.jensd:fontawesomefx:8.0.0'
Expand Down
2 changes: 2 additions & 0 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
# Version Catalogs documentation: https://docs.gradle.org/7.4.1/userguide/platforms.html

[versions]
guava = '31.1-jre'
i2p = '1.7.0'
protobuf = '0.8.18'

[libraries]
guava = { module = 'com.google.guava:guava', version.ref = 'guava'}
i2p-streaming = { module = 'net.i2p.client:streaming', version.ref = 'i2p' }
i2p-core = { module = 'net.i2p:i2p', version.ref = 'i2p' }
i2p-router = { module = 'net.i2p:router', version.ref = 'i2p' }
Expand Down
2 changes: 1 addition & 1 deletion grpc/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ dependencies {
implementation 'io.grpc:grpc-services'
implementation 'io.grpc:grpc-stub'
implementation 'org.codehaus.mojo:animal-sniffer-annotations'
implementation 'com.google.guava:guava'
implementation libs.guava
}

ext {
Expand Down
2 changes: 1 addition & 1 deletion i18n/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ dependencies {
api platform(project(':platforms:common-platform'))

implementation 'com.google.protobuf:protobuf-java'
implementation 'com.google.guava:guava'
implementation libs.guava
}

test {
Expand Down
2 changes: 1 addition & 1 deletion i2p/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ dependencies {
implementation project(':common')

implementation 'com.google.protobuf:protobuf-java'
implementation 'com.google.guava:guava'
implementation libs.guava

// Exclude httpclient transitive dependency because it may override
// I2P-specific impl of some Apache classes like org.apache.http.util.Args
Expand Down
2 changes: 1 addition & 1 deletion identity/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ dependencies {
implementation project(':network')

implementation 'com.google.protobuf:protobuf-java'
implementation 'com.google.guava:guava'
implementation libs.guava
implementation 'com.typesafe:config'
}
test {
Expand Down
2 changes: 1 addition & 1 deletion network/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ dependencies {
implementation project(':persistence')

implementation 'com.google.protobuf:protobuf-java'
implementation 'com.google.guava:guava'
implementation libs.guava
implementation 'com.typesafe:config'
implementation 'com.google.protobuf:protobuf-java'

Expand Down
2 changes: 1 addition & 1 deletion offer/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ dependencies {
implementation project(':wallets')

implementation 'com.google.protobuf:protobuf-java'
implementation 'com.google.guava:guava'
implementation libs.guava
implementation 'com.google.code.gson:gson'
implementation 'com.github.chimp1984:jsocks'
}
Expand Down
2 changes: 1 addition & 1 deletion oracle/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ dependencies {
implementation project(':network')

implementation 'com.google.protobuf:protobuf-java'
implementation 'com.google.guava:guava'
implementation libs.guava
implementation 'com.google.code.gson:gson'
}

Expand Down
2 changes: 1 addition & 1 deletion persistence/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ dependencies {
implementation project(':common')

implementation 'com.google.protobuf:protobuf-java'
implementation 'com.google.guava:guava'
implementation libs.guava
}

test {
Expand Down
1 change: 1 addition & 0 deletions platforms/common-platform/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ dependencies {
/////////////////////////////////////////////////////////////////////////////////
// Guava and transitive dependency constraints
/////////////////////////////////////////////////////////////////////////////////
// TODO Version constraint currently not checked?
api('com.google.guava:guava') {
version { require '30.1.1-jre' }
}
Expand Down
2 changes: 1 addition & 1 deletion presentation/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ dependencies {
implementation project(':offer')
implementation project(':oracle')

implementation 'com.google.guava:guava'
implementation libs.guava
}

test {
Expand Down
2 changes: 1 addition & 1 deletion protocol/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ apply from: '../buildSrc/lombok-dependencies.gradle'
implementation project(':wallets')

implementation 'com.google.protobuf:protobuf-java'
implementation 'com.google.guava:guava'
implementation libs.guava
implementation 'com.typesafe:config'

implementation("org.jeasy:easy-states:2.0.0")
Expand Down
2 changes: 1 addition & 1 deletion security/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ dependencies {
implementation project(':persistence')

implementation 'com.google.protobuf:protobuf-java'
implementation 'com.google.guava:guava'
implementation libs.guava
implementation 'org.bouncycastle:bcprov-jdk16:1.46'
}
test {
Expand Down
2 changes: 1 addition & 1 deletion seed/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ dependencies {

implementation project(':application')

implementation 'com.google.guava:guava'
implementation libs.guava
implementation 'com.typesafe:config'
}
test {
Expand Down
2 changes: 1 addition & 1 deletion settings/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ dependencies {
implementation project(':persistence')

implementation 'com.google.protobuf:protobuf-java'
implementation 'com.google.guava:guava'
implementation libs.guava
}
test {
useJUnitPlatform()
Expand Down
2 changes: 1 addition & 1 deletion social/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ dependencies {
implementation 'com.github.chimp1984:jsocks'
implementation "com.google.code.gson:gson:2.8.5"
implementation 'com.google.protobuf:protobuf-java'
implementation 'com.google.guava:guava'
implementation libs.guava
implementation 'com.typesafe:config'
}

Expand Down
2 changes: 1 addition & 1 deletion support/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ dependencies {
implementation project(':network')

implementation 'com.google.protobuf:protobuf-java'
implementation 'com.google.guava:guava'
implementation libs.guava
}
test {
useJUnitPlatform()
Expand Down
2 changes: 1 addition & 1 deletion tools/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ dependencies {
implementation project(':application')
implementation project(':desktop')

implementation 'com.google.guava:guava'
implementation libs.guava
implementation 'com.typesafe:config'

implementation 'com.jfoenix:jfoenix:9.0.10'
Expand Down
2 changes: 1 addition & 1 deletion tor/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ dependencies {

implementation project(':common')

implementation 'com.google.guava:guava'
implementation libs.guava

implementation 'org.apache.commons:commons-compress'

Expand Down
3 changes: 1 addition & 2 deletions wallets/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ apply from: '../buildSrc/test-dependencies.gradle'
apply from: '../buildSrc/lombok-dependencies.gradle'

ext {
guavaVersion = '31.0.1-jre'
jsonrpc4jVersion = '1.6.0.bisq.2'
jacksonDatabindVersion = '2.12.0'
}
Expand All @@ -29,7 +28,7 @@ dependencies {
exclude(module: 'base64')
exclude(module: 'httpcore-nio')
}
implementation("com.google.guava:guava:$guavaVersion")
implementation libs.guava

testImplementation("org.assertj:assertj-core:3.22.0")
}
Expand Down

0 comments on commit fabb774

Please sign in to comment.