Skip to content

Commit 7a82efd

Browse files
rlazodconeybe
andauthored
Use the version catalog in the main build.gradle file (#6590)
Additionally, the entries in the version catalog have been sorted alphabetically. --------- Co-authored-by: Denver Coneybeare <[email protected]>
1 parent 8130292 commit 7a82efd

File tree

2 files changed

+48
-38
lines changed

2 files changed

+48
-38
lines changed

build.gradle

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,11 @@ buildscript {
3131
}
3232

3333
dependencies {
34-
classpath 'com.google.protobuf:protobuf-gradle-plugin:0.9.4'
35-
classpath 'net.ltgt.gradle:gradle-errorprone-plugin:3.1.0'
36-
classpath 'com.google.gms:google-services:4.3.15'
37-
classpath 'com.google.firebase:firebase-appdistribution-gradle:5.0.0'
38-
classpath 'com.google.firebase:firebase-crashlytics-gradle:2.9.5'
34+
classpath libs.protobuf.gradle.plugin
35+
classpath libs.gradle.errorprone.plugin
36+
classpath libs.google.services
37+
classpath libs.firebase.appdistribution.gradle
38+
classpath libs.firebase.crashlytics.gradle
3939
classpath libs.spotless.plugin.gradle
4040
}
4141
}

gradle/libs.versions.toml

Lines changed: 43 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,14 @@
22
# javalite, protoc and protobufjavautil versions should be in sync while updating and
33
# it needs to match the protobuf version which grpc has transitive dependency on, which
44
# needs to match the version of grpc that grpc-kotlin has a transitive dependency on.
5-
androidGradlePlugin = "8.3.2"
65
android-lint = "31.3.2"
6+
androidGradlePlugin = "8.3.2"
7+
androidx-test-core="1.5.0"
8+
androidx-test-junit="1.1.5"
9+
androidx-test-truth = "1.5.0"
710
appcompat = "1.7.0"
8-
autovalue = "1.10.1"
911
autoValueParcel = "0.2.6"
12+
autovalue = "1.10.1"
1013
awaitility = "3.1.0"
1114
browser = "1.3.0"
1215
cardview = "1.0.0"
@@ -19,10 +22,14 @@ dexmaker = "2.28.1"
1922
dexmakerVersion = "1.2"
2023
espressoCore = "3.6.1"
2124
featureDelivery = "2.1.0"
25+
firebaseAppdistributionGradle = "5.0.0"
2226
firebaseCommon = "21.0.0"
2327
firebaseComponents = "18.0.0"
28+
firebaseCrashlyticsGradle = "3.0.2"
2429
glide = "4.11.0"
2530
googleApiClient = "1.30.9"
31+
googleServices = "4.3.15"
32+
gradleErrorpronePlugin = "3.1.0"
2633
grpc = "1.62.2"
2734
grpcKotlin = "1.4.1"
2835
hamcrest = "2.2"
@@ -34,6 +41,7 @@ jacksonCore = "2.13.1"
3441
jacksonDatabind = "2.13.1"
3542
javalite = "3.25.5"
3643
jsonassert = "1.5.0"
44+
kotest = "5.9.0" # Do not use 5.9.1 because it reverts the fix for https://github.com/kotest/kotest/issues/3981
3745
kotestAssertionsCore = "5.5.5"
3846
kotlin = "1.8.22"
3947
ktorVersion = "2.3.2"
@@ -42,48 +50,45 @@ lifecycleProcess = "2.3.1"
4250
material = "1.12.0"
4351
mavenResolverApi = "1.9.22"
4452
mavenResolverProvider = "3.9.9"
45-
mockitoAndroid = "3.4.0"
4653
mockito = "5.2.0"
54+
mockitoAndroid = "3.4.0"
4755
mockk = "1.13.11"
4856
playServicesCloudMessaging = "17.2.0"
4957
playServicesStats = "17.0.2"
5058
playServicesVision = "20.1.3"
5159
protoGoogleCommonProtos = "1.18.0"
60+
protobufGradlePlugin = "0.9.4"
61+
protobufjavautil = "3.25.5"
62+
protoc = "3.25.5"
63+
quickcheck = "0.6"
5264
reactiveStreams = "1.0.3"
65+
robolectric = "4.12"
5366
runner = "1.0.2"
5467
rxandroid = "2.0.2"
5568
rxjava = "2.1.14"
69+
serialization = "1.5.1"
5670
serialization-plugin = "1.8.22"
57-
protoc = "3.25.5"
5871
slf4jNop = "2.0.9"
72+
spotless = "7.0.0.BETA3"
5973
testServices = "1.2.0"
6074
truth = "1.4.2"
61-
robolectric = "4.12"
62-
protobufjavautil = "3.25.5"
63-
kotest = "5.9.0" # Do not use 5.9.1 because it reverts the fix for https://github.com/kotest/kotest/issues/3981
64-
quickcheck = "0.6"
65-
serialization = "1.5.1"
66-
spotless = "7.0.0.BETA3"
67-
androidx-test-core="1.5.0"
68-
androidx-test-junit="1.1.5"
69-
androidx-test-truth = "1.5.0"
70-
wiremockStandalone = "2.26.3"
7175
truthProtoExtension = "1.0"
76+
wiremockStandalone = "2.26.3"
7277

7378
[libraries]
79+
android-gradlePlugin-builder-test-api = { group = "com.android.tools.build", name = "builder-test-api", version.ref = "androidGradlePlugin" }
7480
android-gradlePlugin-gradle = { group = "com.android.tools.build", name = "gradle", version.ref = "androidGradlePlugin" }
7581
android-gradlePlugin-gradle-api = { group = "com.android.tools.build", name = "gradle-api", version.ref = "androidGradlePlugin" }
76-
android-gradlePlugin-builder-test-api = { group = "com.android.tools.build", name = "builder-test-api", version.ref = "androidGradlePlugin" }
7782
android-lint = { module = "com.android.tools.lint:lint", version.ref = "android-lint" }
7883
android-lint-api = { module = "com.android.tools.lint:lint-api", version.ref = "android-lint" }
7984
android-lint-checks = { module = "com.android.tools.lint:lint-checks", version.ref = "android-lint" }
8085
android-lint-tests = { module = "com.android.tools.lint:lint-tests", version.ref = "android-lint" }
8186
android-lint-testutils = { module = "com.android.tools:testutils", version.ref = "android-lint" }
8287
androidx-annotation = { module = "androidx.annotation:annotation", version = "1.5.0" }
8388
androidx-appcompat = { module = "androidx.appcompat:appcompat", version.ref = "appcompat" }
89+
androidx-browser = { module = "androidx.browser:browser", version.ref = "browser" }
8490
androidx-cardview = { module = "androidx.cardview:cardview", version.ref = "cardview" }
8591
androidx-constraintlayout = { module = "androidx.constraintlayout:constraintlayout", version.ref = "constraintlayout" }
86-
androidx-browser = { module = "androidx.browser:browser", version.ref = "browser" }
8792
androidx-core = { module = "androidx.core:core", version = "1.2.0" }
8893
androidx-core-ktx = { module = "androidx.core:core-ktx", version.ref = "coreKtx" }
8994
androidx-espresso-core = { module = "androidx.test.espresso:espresso-core", version.ref = "espressoCore" }
@@ -100,47 +105,51 @@ autovalue-annotations = { module = "com.google.auto.value:auto-value-annotations
100105
awaitility = { module = "org.awaitility:awaitility", version.ref = "awaitility" }
101106
checker-qual = { module = "org.checkerframework:checker-qual", version.ref = "checkerQual" }
102107
compiler = { module = "com.github.bumptech.glide:compiler", version.ref = "glide" }
103-
dagger-dagger = { module = "com.google.dagger:dagger", version.ref = "dagger" }
104108
dagger-compiler = { module = "com.google.dagger:dagger-compiler", version.ref = "dagger" }
109+
dagger-dagger = { module = "com.google.dagger:dagger", version.ref = "dagger" }
105110
dexmaker = { module = "com.linkedin.dexmaker:dexmaker", version.ref = "dexmaker" }
106111
errorprone-annotations = { module = "com.google.errorprone:error_prone_annotations", version = "2.26.0" }
107112
feature-delivery = { module = "com.google.android.play:feature-delivery", version.ref = "featureDelivery" }
108113
findbugs-jsr305 = { module = "com.google.code.findbugs:jsr305", version = "3.0.2" }
114+
firebase-appdistribution-gradle = { module = "com.google.firebase:firebase-appdistribution-gradle", version.ref = "firebaseAppdistributionGradle" }
109115
firebase-common = { module = "com.google.firebase:firebase-common", version.ref = "firebaseCommon" }
110116
firebase-components = { module = "com.google.firebase:firebase-components", version.ref = "firebaseComponents" }
117+
firebase-crashlytics-gradle = { module = "com.google.firebase:firebase-crashlytics-gradle", version.ref = "firebaseCrashlyticsGradle" }
111118
glide = { module = "com.github.bumptech.glide:glide", version.ref = "glide" }
112119
google-api-client = { module = "com.google.api-client:google-api-client", version.ref = "googleApiClient" }
113120
google-dexmaker = { module = "com.google.dexmaker:dexmaker", version.ref = "dexmakerVersion" }
121+
google-services = { module = "com.google.gms:google-services", version.ref = "googleServices" }
122+
gradle-errorprone-plugin = { module = "net.ltgt.gradle:gradle-errorprone-plugin", version.ref = "gradleErrorpronePlugin" }
114123
grpc-android = { module = "io.grpc:grpc-android", version.ref = "grpc" }
115124
grpc-kotlin-stub = { module = "io.grpc:grpc-kotlin-stub", version.ref = "grpcKotlin" }
116125
grpc-okhttp = { module = "io.grpc:grpc-okhttp", version.ref = "grpc" }
117126
grpc-protobuf-lite = { module = "io.grpc:grpc-protobuf-lite", version.ref = "grpc" }
118-
grpc-testing = { module= "io.grpc:grpc-testing", version.ref="grpc" }
119127
grpc-protoc-gen-java = { module = "io.grpc:protoc-gen-grpc-java", version.ref = "grpc" }
120128
grpc-protoc-gen-kotlin = { module = "io.grpc:protoc-gen-grpc-kotlin", version.ref = "grpcKotlin" }
121129
grpc-stub = { module = "io.grpc:grpc-stub", version.ref = "grpc" }
130+
grpc-testing = { module= "io.grpc:grpc-testing", version.ref="grpc" }
131+
hamcrest = { module = "org.hamcrest:hamcrest", version.ref = "hamcrest" }
122132
hamcrest-junit = { module = "org.hamcrest:hamcrest-junit", version.ref = "hamcrestJunit" }
123133
hamcrest-library = { module = "org.hamcrest:hamcrest-library", version.ref = "hamcrestLibrary" }
124-
hamcrest = { module = "org.hamcrest:hamcrest", version.ref = "hamcrest" }
125134
httpclient-android = { module = "org.apache.httpcomponents:httpclient-android", version.ref = "httpclientAndroid" }
126135
integrity = { module = "com.google.android.play:integrity", version.ref = "integrity" }
127-
jackson-databind = { module = "com.fasterxml.jackson.core:jackson-databind", version.ref = "jacksonDatabind" }
128136
jackson-core = { module = "com.fasterxml.jackson.core:jackson-core", version.ref = "jacksonCore" }
137+
jackson-databind = { module = "com.fasterxml.jackson.core:jackson-databind", version.ref = "jacksonDatabind" }
129138
javax-annotation-jsr250 = { module = "javax.annotation:jsr250-api", version = "1.0" }
130139
javax-inject = { module = "javax.inject:javax.inject", version = "1" }
131140
jsonassert = { module = "org.skyscreamer:jsonassert", version.ref = "jsonassert" }
132141
kotest-assertions-core = { module = "io.kotest:kotest-assertions-core", version.ref = "kotestAssertionsCore" }
133142
kotest-assertions-json = { module = "io.kotest:kotest-assertions-json", version.ref = "kotestAssertionsCore" }
134143
kotlin-bom = { module = "org.jetbrains.kotlin:kotlin-bom", version.ref = "kotlin" }
144+
kotlin-coroutines-tasks = { module = "org.jetbrains.kotlinx:kotlinx-coroutines-play-services", version.ref = "coroutines" }
135145
kotlin-stdlib = { module = "org.jetbrains.kotlin:kotlin-stdlib", version.ref = "kotlin" }
136146
kotlin-stdlib-jdk8 = { module = "org.jetbrains.kotlin:kotlin-stdlib-jdk8", version.ref = "kotlin" }
137-
kotlin-coroutines-tasks = { module = "org.jetbrains.kotlinx:kotlinx-coroutines-play-services", version.ref = "coroutines" }
138147
kotlinx-coroutines-android = { module = "org.jetbrains.kotlinx:kotlinx-coroutines-android", version.ref = "coroutines" }
148+
kotlinx-coroutines-core = { module = "org.jetbrains.kotlinx:kotlinx-coroutines-core", version.ref = "coroutines" }
139149
kotlinx-coroutines-reactive = { module = "org.jetbrains.kotlinx:kotlinx-coroutines-reactive", version.ref = "coroutines" }
140150
kotlinx-datetime = { module = "org.jetbrains.kotlinx:kotlinx-datetime", version = "0.6.1" }
141151
kotlinx-serialization-core = { module = "org.jetbrains.kotlinx:kotlinx-serialization-core", version.ref = "serialization" }
142152
kotlinx-serialization-json = { module = "org.jetbrains.kotlinx:kotlinx-serialization-json", version.ref = "serialization" }
143-
kotlinx-coroutines-core = { module = "org.jetbrains.kotlinx:kotlinx-coroutines-core", version.ref = "coroutines" }
144153
ktor-client-content-negotiation = { module = "io.ktor:ktor-client-content-negotiation", version.ref = "ktorVersion" }
145154
ktor-client-core = { module = "io.ktor:ktor-client-core", version.ref = "ktorVersion" }
146155
ktor-client-logging = { module = "io.ktor:ktor-client-logging", version.ref = "ktorVersion" }
@@ -164,40 +173,41 @@ playservices-base = { module = "com.google.android.gms:play-services-base", vers
164173
playservices-basement = { module = "com.google.android.gms:play-services-basement", version = "18.3.0" }
165174
playservices-tasks = { module = "com.google.android.gms:play-services-tasks", version = "18.1.0" }
166175
proto-google-common-protos = { module = "com.google.api.grpc:proto-google-common-protos", version.ref = "protoGoogleCommonProtos" }
167-
protoc = { module = "com.google.protobuf:protoc", version.ref = "protoc" }
176+
protobuf-gradle-plugin = { module = "com.google.protobuf:protobuf-gradle-plugin", version.ref = "protobufGradlePlugin" }
168177
protobuf-java = { module = "com.google.protobuf:protobuf-java", version.ref = "javalite" }
169178
protobuf-java-lite = { module = "com.google.protobuf:protobuf-javalite", version.ref = "javalite" }
170179
protobuf-kotlin-lite = { module = "com.google.protobuf:protobuf-kotlin-lite", version.ref = "javalite" }
180+
protoc = { module = "com.google.protobuf:protoc", version.ref = "protoc" }
171181

172182
# Test libs
173183
androidx-test-core = { module = "androidx.test:core", version.ref = "androidx-test-core" }
174184
androidx-test-junit = { module = "androidx.test.ext:junit", version.ref = "androidx-test-junit" }
175-
androidx-test-truth = { module = "androidx.test.ext:truth", version.ref = "androidx-test-truth" }
176185
androidx-test-rules = { module = "androidx.test:rules", version.ref = "androidx-test-core" }
177186
androidx-test-runner = { module = "androidx.test:runner", version = "1.5.2" }
187+
androidx-test-truth = { module = "androidx.test.ext:truth", version.ref = "androidx-test-truth" }
178188
junit = { module = "junit:junit", version = "4.13.2" }
189+
kotest-assertions = { module = "io.kotest:kotest-assertions-core-jvm", version.ref = "kotest" }
190+
kotest-property = { module = "io.kotest:kotest-property-jvm", version.ref = "kotest" }
191+
kotest-property-arbs = { module = "io.kotest.extensions:kotest-property-arbs", version = "2.1.2" }
192+
kotest-runner = { module = "io.kotest:kotest-runner-junit4-jvm", version.ref = "kotest" }
179193
kotlin-coroutines-test = { module = "org.jetbrains.kotlinx:kotlinx-coroutines-test", version.ref = "coroutines" }
180194
mockito-android = { module = "org.mockito:mockito-android", version.ref = "mockitoAndroid" }
181-
mockito-mockito-inline = { module = "org.mockito:mockito-inline", version.ref = "mockito" }
182195
mockito-core = { module = "org.mockito:mockito-core", version.ref = "mockito" }
183196
mockito-dexmaker = { module = "com.linkedin.dexmaker:dexmaker-mockito", version = "2.28.3" }
197+
mockito-mockito-inline = { module = "org.mockito:mockito-inline", version.ref = "mockito" }
184198
mockk = { module = "io.mockk:mockk", version.ref = "mockk" }
185199
mockk-android = { module = "io.mockk:mockk-android", version.ref = "mockk" }
200+
protobuf-java-util = { module = "com.google.protobuf:protobuf-java-util", version.ref = "protobufjavautil" }
201+
quickcheck = { module = "net.java:quickcheck", version.ref = "quickcheck" }
186202
reactive-streams = { module = "org.reactivestreams:reactive-streams", version.ref = "reactiveStreams" }
187203
robolectric = { module = "org.robolectric:robolectric", version.ref = "robolectric" }
188204
runner = { module = "com.android.support.test:runner", version.ref = "runner" }
189-
rxjava = { module = "io.reactivex.rxjava2:rxjava", version.ref = "rxjava" }
190205
rxandroid = { module = "io.reactivex.rxjava2:rxandroid", version.ref = "rxandroid" }
206+
rxjava = { module = "io.reactivex.rxjava2:rxjava", version.ref = "rxjava" }
191207
slf4j-nop = { module = "org.slf4j:slf4j-nop", version.ref = "slf4jNop" }
208+
spotless-plugin-gradle = { module = "com.diffplug.spotless:spotless-plugin-gradle", version.ref = "spotless" }
192209
truth = { module = "com.google.truth:truth", version.ref = "truth" }
193210
truth-liteproto-extension = { module = "com.google.truth.extensions:truth-liteproto-extension", version.ref = "truth" }
194-
protobuf-java-util = { module = "com.google.protobuf:protobuf-java-util", version.ref = "protobufjavautil" }
195-
kotest-runner = { module = "io.kotest:kotest-runner-junit4-jvm", version.ref = "kotest" }
196-
kotest-assertions = { module = "io.kotest:kotest-assertions-core-jvm", version.ref = "kotest" }
197-
kotest-property = { module = "io.kotest:kotest-property-jvm", version.ref = "kotest" }
198-
kotest-property-arbs = { module = "io.kotest.extensions:kotest-property-arbs", version = "2.1.2" }
199-
quickcheck = { module = "net.java:quickcheck", version.ref = "quickcheck" }
200-
spotless-plugin-gradle = { module = "com.diffplug.spotless:spotless-plugin-gradle", version.ref = "spotless" }
201211
truth-proto-extension = { module = "com.google.truth.extensions:truth-proto-extension", version.ref = "truthProtoExtension" }
202212
turbine = { module = "app.cash.turbine:turbine", version = "1.0.0" }
203213

0 commit comments

Comments
 (0)