Skip to content

Commit de05c9b

Browse files
authored
Merge pull request #1787 from vector-im/feature/bma/gradleCleanup
Gradle catalog cleanup
2 parents 2f51919 + 5850f53 commit de05c9b

File tree

14 files changed

+50
-53
lines changed

14 files changed

+50
-53
lines changed

anvilcodegen/build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ dependencies {
2323
implementation(projects.anvilannotations)
2424
api(libs.anvil.compiler.api)
2525
implementation(libs.anvil.compiler.utils)
26-
implementation("com.squareup:kotlinpoet:1.14.2")
26+
implementation(libs.kotlinpoet)
2727
implementation(libs.dagger)
2828
compileOnly(libs.google.autoservice.annotations)
2929
kapt(libs.google.autoservice)

app/build.gradle.kts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ plugins {
2727
alias(libs.plugins.anvil)
2828
alias(libs.plugins.ksp)
2929
alias(libs.plugins.kapt)
30-
id("com.google.firebase.appdistribution") version "4.0.1"
31-
id("org.jetbrains.kotlinx.knit") version "0.4.0"
30+
alias(libs.plugins.firebaseAppDistribution)
31+
alias(libs.plugins.knit)
3232
id("kotlin-parcelize")
3333
// To be able to update the firebase.xml files, uncomment and build the project
3434
// id("com.google.gms.google-services")

build.gradle.kts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ import org.jetbrains.kotlin.cli.common.toBooleanLenient
55

66
buildscript {
77
dependencies {
8-
classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:1.9.20")
9-
classpath("com.google.gms:google-services:4.4.0")
8+
classpath(libs.kotlin.gradle.plugin)
9+
classpath(libs.gms.google.services)
1010
}
1111
}
1212

features/login/impl/build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ plugins {
1919
alias(libs.plugins.anvil)
2020
alias(libs.plugins.ksp)
2121
id("kotlin-parcelize")
22-
kotlin("plugin.serialization") version "1.9.20"
22+
alias(libs.plugins.kotlin.serialization)
2323
}
2424

2525
android {

features/rageshake/impl/build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ dependencies {
4444
api(projects.features.rageshake.api)
4545
implementation(libs.androidx.datastore.preferences)
4646
implementation(platform(libs.network.okhttp.bom))
47-
implementation("com.squareup.okhttp3:okhttp")
47+
implementation(libs.network.okhttp.okhttp)
4848
implementation(libs.coil)
4949
implementation(libs.coil.compose)
5050
ksp(libs.showkase.processor)

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ signing.element.nightly.keyPassword=Secret
4949

5050
# Customise the Lint version to use a more recent version than the one bundled with AGP
5151
# https://googlesamples.github.io/android-custom-lint-rules/usage/newer-lint.md.html
52-
android.experimental.lint.version=8.3.0-alpha11
52+
android.experimental.lint.version=8.3.0-alpha12
5353

5454
# Enable test fixture for all modules by default
5555
android.experimental.enableTestFixtures=true

gradle/libs.versions.toml

Lines changed: 27 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -6,19 +6,16 @@
66
android_gradle_plugin = "8.1.3"
77
kotlin = "1.9.20"
88
ksp = "1.9.20-1.0.14"
9-
molecule = "1.3.0"
9+
firebaseAppDistribution = "4.0.1"
1010

1111
# AndroidX
1212
core = "1.12.0"
1313
datastore = "1.0.0"
1414
constraintlayout = "2.1.4"
1515
constraintlayout_compose = "1.0.1"
16-
recyclerview = "1.3.2"
1716
lifecycle = "2.7.0-beta01"
1817
activity = "1.8.0"
19-
startup = "1.1.1"
2018
media3 = "1.1.1"
21-
browser = "1.6.0"
2219

2320
# Compose
2421
compose_bom = "2023.10.01"
@@ -38,13 +35,8 @@ coil = "2.5.0"
3835
datetime = "0.4.1"
3936
serialization_json = "1.6.0"
4037
showkase = "1.0.2"
41-
jsoup = "1.16.2"
4238
appyx = "1.4.0"
43-
dependencycheck = "8.4.2"
44-
dependencyanalysis = "1.25.0"
45-
stem = "2.3.0"
4639
sqldelight = "2.0.0"
47-
telephoto = "0.6.2"
4840
wysiwyg = "2.16.0"
4941

5042
# DI
@@ -55,34 +47,33 @@ anvil = "2.4.8-1-8"
5547
autoservice = "1.1.1"
5648

5749
# quality
58-
detekt = "1.23.3"
59-
dependencygraph = "0.12"
6050
junit = "4.13.2"
6151
androidx-test-ext-junit = "1.1.5"
6252
espresso-core = "3.5.1"
63-
appcompat = "1.6.1"
6453

6554
[libraries]
6655
# Project
6756
android_gradle_plugin = { module = "com.android.tools.build:gradle", version.ref = "android_gradle_plugin" }
6857
# https://developer.android.com/studio/write/java8-support#library-desugaring-versions
6958
android_desugar = "com.android.tools:desugar_jdk_libs:2.0.4"
7059
kotlin_gradle_plugin = { module = "org.jetbrains.kotlin:kotlin-gradle-plugin", version.ref = "kotlin" }
60+
gms_google_services = "com.google.gms:google-services:4.4.0"
7161
# https://firebase.google.com/docs/android/setup#available-libraries
7262
google_firebase_bom = "com.google.firebase:firebase-bom:32.5.0"
63+
firebase_appdistribution_gradle = { module = "com.google.firebase:firebase-appdistribution-gradle", version.ref = "firebaseAppDistribution" }
7364

7465
# AndroidX
7566
androidx_core = { module = "androidx.core:core", version.ref = "core" }
7667
androidx_corektx = { module = "androidx.core:core-ktx", version.ref = "core" }
77-
androidx_annotationjvm = { module = "androidx.annotation:annotation-jvm", version = "1.7.0" }
68+
androidx_annotationjvm = "androidx.annotation:annotation-jvm:1.7.0"
7869
androidx_datastore_preferences = { module = "androidx.datastore:datastore-preferences", version.ref = "datastore" }
7970
androidx_datastore_datastore = { module = "androidx.datastore:datastore", version.ref = "datastore" }
8071
androidx_exifinterface = "androidx.exifinterface:exifinterface:1.3.6"
8172
androidx_constraintlayout = { module = "androidx.constraintlayout:constraintlayout", version.ref = "constraintlayout" }
8273
androidx_constraintlayout_compose = { module = "androidx.constraintlayout:constraintlayout-compose", version.ref = "constraintlayout_compose" }
8374

84-
androidx_recyclerview = { module = "androidx.recyclerview:recyclerview", version.ref = "recyclerview" }
85-
androidx_browser = { module = "androidx.browser:browser", version.ref = "browser" }
75+
androidx_recyclerview = "androidx.recyclerview:recyclerview:1.3.2"
76+
androidx_browser = "androidx.browser:browser:1.6.0"
8677
androidx_lifecycle_runtime = { module = "androidx.lifecycle:lifecycle-runtime-ktx", version.ref = "lifecycle" }
8778
androidx_lifecycle_process = { module = "androidx.lifecycle:lifecycle-process", version.ref = "lifecycle" }
8879
androidx_splash = "androidx.core:core-splashscreen:1.0.1"
@@ -93,12 +84,18 @@ androidx_biometric = "androidx.biometric:biometric-ktx:1.2.0-alpha05"
9384

9485
androidx_activity_activity = { module = "androidx.activity:activity", version.ref = "activity" }
9586
androidx_activity_compose = { module = "androidx.activity:activity-compose", version.ref = "activity" }
96-
androidx_startup = { module = "androidx.startup:startup-runtime", version.ref = "startup" }
87+
androidx_startup = "androidx.startup:startup-runtime:1.1.1"
9788
androidx_preference = "androidx.preference:preference:1.2.1"
9889
androidx_webkit = "androidx.webkit:webkit:1.8.0"
9990

100-
androidx_compose_bom = { group = "androidx.compose", name = "compose-bom", version.ref = "compose_bom" }
91+
androidx_compose_bom = { module = "androidx.compose:compose-bom", version.ref = "compose_bom" }
10192
androidx_compose_material3 = "androidx.compose.material3:material3:1.2.0-alpha10"
93+
androidx_compose_ui = { module = "androidx.compose.ui:ui" }
94+
androidx_compose_ui_tooling = { module = "androidx.compose.ui:ui-tooling" }
95+
androidx_compose_ui_tooling_preview = { module = "androidx.compose.ui:ui-tooling-preview" }
96+
androidx_compose_ui_test_manifest = { module = "androidx.compose.ui:ui-test-manifest" }
97+
androidx_compose_material = { module = "androidx.compose.material:material" }
98+
androidx_compose_material_icons = { module = "androidx.compose.material:material-icons-extended" }
10299

103100
# Coroutines
104101
coroutines_core = { module = "org.jetbrains.kotlinx:kotlinx-coroutines-core", version.ref = "coroutines" }
@@ -114,6 +111,7 @@ squareup_seismic = "com.squareup:seismic:1.0.3"
114111
# network
115112
network_okhttp_bom = "com.squareup.okhttp3:okhttp-bom:4.12.0"
116113
network_okhttp_logging = { module = "com.squareup.okhttp3:logging-interceptor" }
114+
network_okhttp_okhttp = { module = "com.squareup.okhttp3:okhttp" }
117115
network_okhttp = { module = "com.squareup.okhttp3:okhttp" }
118116
network_retrofit = "com.squareup.retrofit2:retrofit:2.9.0"
119117
network_retrofit_converter_serialization = "com.jakewharton.retrofit:retrofit2-kotlinx-serialization-converter:1.0.0"
@@ -124,13 +122,9 @@ test_corektx = { module = "androidx.test:core-ktx", version.ref = "test_core" }
124122
test_arch_core = "androidx.arch.core:core-testing:2.2.0"
125123
test_junit = "junit:junit:4.13.2"
126124
test_runner = "androidx.test:runner:1.5.2"
127-
test_uiautomator = "androidx.test.uiautomator:uiautomator:2.2.0"
128125
test_junitext = "androidx.test.ext:junit:1.1.5"
129126
test_mockk = "io.mockk:mockk:1.13.8"
130-
test_barista = "com.adevinta.android:barista:4.3.0"
131127
test_konsist = "com.lemonappdev:konsist:0.13.0"
132-
test_hamcrest = "org.hamcrest:hamcrest:2.2"
133-
test_orchestrator = "androidx.test:orchestrator:1.4.2"
134128
test_turbine = "app.cash.turbine:turbine:1.0.0"
135129
test_truth = "com.google.truth:truth:1.1.5"
136130
test_parameter_injector = "com.google.testparameterinjector:test-parameter-injector:1.14"
@@ -143,11 +137,12 @@ coil_compose = { module = "io.coil-kt:coil-compose", version.ref = "coil" }
143137
coil_gif = { module = "io.coil-kt:coil-gif", version.ref = "coil" }
144138
datetime = { module = "org.jetbrains.kotlinx:kotlinx-datetime", version.ref = "datetime" }
145139
serialization_json = { module = "org.jetbrains.kotlinx:kotlinx-serialization-json", version.ref = "serialization_json" }
140+
kotlinx_collections_immutable = "org.jetbrains.kotlinx:kotlinx-collections-immutable:0.3.5"
146141
showkase = { module = "com.airbnb.android:showkase", version.ref = "showkase" }
147142
showkase_processor = { module = "com.airbnb.android:showkase-processor", version.ref = "showkase" }
148-
jsoup = { module = "org.jsoup:jsoup", version.ref = "jsoup" }
143+
jsoup = "org.jsoup:jsoup:1.16.2"
149144
appyx_core = { module = "com.bumble.appyx:core", version.ref = "appyx" }
150-
molecule-runtime = { module = "app.cash.molecule:molecule-runtime", version.ref = "molecule" }
145+
molecule-runtime = "app.cash.molecule:molecule-runtime:1.3.0"
151146
timber = "com.jakewharton.timber:timber:5.0.1"
152147
matrix_sdk = "org.matrix.rustcomponents:sdk-android:0.1.67"
153148
matrix_richtexteditor = { module = "io.element.android:wysiwyg", version.ref = "wysiwyg" }
@@ -160,12 +155,13 @@ sqlite = "androidx.sqlite:sqlite-ktx:2.4.0"
160155
unifiedpush = "com.github.UnifiedPush:android-connector:2.1.1"
161156
otaliastudios_transcoder = "com.otaliastudios:transcoder:0.10.5"
162157
vanniktech_blurhash = "com.vanniktech:blurhash:0.1.0"
163-
telephoto_zoomableimage = { module = "me.saket.telephoto:zoomable-image-coil", version.ref = "telephoto" }
158+
telephoto_zoomableimage = "me.saket.telephoto:zoomable-image-coil:0.6.2"
164159
statemachine = "com.freeletics.flowredux:compose:1.2.0"
165160
maplibre = "org.maplibre.gl:android-sdk:10.2.0"
166161
maplibre_ktx = "org.maplibre.gl:android-sdk-ktx-v7:2.0.2"
167162
maplibre_annotation = "org.maplibre.gl:android-plugin-annotation-v9:2.0.2"
168163
opusencoder = "io.element.android:opusencoder:1.1.0"
164+
kotlinpoet = "com.squareup:kotlinpoet:1.14.2"
169165

170166
# Analytics
171167
posthog = "com.posthog.android:posthog:2.0.3"
@@ -194,7 +190,7 @@ android_composeCompiler = { module = "androidx.compose.compiler:compiler", versi
194190
junit = { group = "junit", name = "junit", version.ref = "junit" }
195191
androidx-test-ext-junit = { group = "androidx.test.ext", name = "junit", version.ref = "androidx-test-ext-junit" }
196192
espresso-core = { group = "androidx.test.espresso", name = "espresso-core", version.ref = "espresso-core" }
197-
appcompat = { group = "androidx.appcompat", name = "appcompat", version.ref = "appcompat" }
193+
appcompat = "androidx.appcompat:appcompat:1.6.1"
198194

199195
[bundles]
200196

@@ -207,14 +203,16 @@ kotlin_serialization = { id = "org.jetbrains.kotlin.plugin.serialization", versi
207203
kapt = { id = "org.jetbrains.kotlin.kapt", version.ref = "kotlin" }
208204
ksp = { id = "com.google.devtools.ksp", version.ref = "ksp" }
209205
anvil = { id = "com.squareup.anvil", version.ref = "anvil" }
210-
detekt = { id = "io.gitlab.arturbosch.detekt", version.ref = "detekt" }
206+
detekt = "io.gitlab.arturbosch.detekt:1.23.3"
211207
ktlint = "org.jlleitschuh.gradle.ktlint:11.6.1"
212-
dependencygraph = { id = "com.savvasdalkitsis.module-dependency-graph", version.ref = "dependencygraph" }
213-
dependencycheck = { id = "org.owasp.dependencycheck", version.ref = "dependencycheck" }
214-
dependencyanalysis = { id = "com.autonomousapps.dependency-analysis", version.ref = "dependencyanalysis" }
208+
dependencygraph = "com.savvasdalkitsis.module-dependency-graph:0.12"
209+
dependencycheck = "org.owasp.dependencycheck:8.4.2"
210+
dependencyanalysis = "com.autonomousapps.dependency-analysis:1.25.0"
215211
paparazzi = "app.cash.paparazzi:1.3.1"
216212
kover = "org.jetbrains.kotlinx.kover:0.6.1"
217213
sqldelight = { id = "app.cash.sqldelight", version.ref = "sqldelight" }
214+
firebaseAppDistribution = { id = "com.google.firebase.appdistribution", version.ref = "firebaseAppDistribution" }
215+
knit = { id = "org.jetbrains.kotlinx.knit", version = "0.4.0" }
218216

219217
# Version '4.3.1.3277' introduced some regressions in CI time (more than 2x slower), so make sure
220218
# this is no longer the case before upgrading.

libraries/matrix/api/build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ plugins {
1818
id("io.element.android-compose-library")
1919
id("kotlin-parcelize")
2020
alias(libs.plugins.anvil)
21-
kotlin("plugin.serialization") version "1.9.20"
21+
alias(libs.plugins.kotlin.serialization)
2222
}
2323

2424
android {

libraries/matrix/impl/build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
plugins {
1818
id("io.element.android-library")
1919
alias(libs.plugins.anvil)
20-
kotlin("plugin.serialization") version "1.9.20"
20+
alias(libs.plugins.kotlin.serialization)
2121
}
2222

2323
android {

libraries/push/impl/build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
plugins {
1717
id("io.element.android-library")
1818
alias(libs.plugins.anvil)
19-
kotlin("plugin.serialization") version "1.9.20"
19+
alias(libs.plugins.kotlin.serialization)
2020
}
2121

2222
android {

0 commit comments

Comments
 (0)