Skip to content
Snippets Groups Projects
Verified Commit 87a2bc69 authored by Janne Mareike Koschinski's avatar Janne Mareike Koschinski
Browse files

build: switch to version catalogs

parent 9d8cb715
No related branches found
No related tags found
No related merge requests found
...@@ -58,52 +58,43 @@ android { ...@@ -58,52 +58,43 @@ android {
} }
dependencies { dependencies {
implementation(kotlin("stdlib", "1.6.10"))
// App Compat // App Compat
implementation("com.google.android.material", "material", "1.1.0-alpha10") implementation(libs.androidx.material)
implementation("androidx.appcompat", "appcompat", "1.1.0") implementation(libs.androidx.appcompat)
implementation("androidx.browser", "browser", "1.2.0") implementation(libs.androidx.browser)
implementation("androidx.cardview", "cardview", "1.0.0") implementation(libs.androidx.cardview)
implementation("androidx.recyclerview", "recyclerview", "1.1.0") implementation(libs.androidx.recyclerview)
implementation("androidx.swiperefreshlayout", "swiperefreshlayout", "1.1.0-beta01") implementation(libs.androidx.swiperefreshlayout)
implementation("androidx.preference", "preference", "1.1.0") implementation(libs.androidx.preference)
// Only needed for ringtone preference // Only needed for ringtone preference
implementation("androidx.legacy", "legacy-preference-v14", "1.0.0") implementation(libs.androidx.legacy)
implementation("androidx.constraintlayout", "constraintlayout", "2.0.0-beta4") implementation(libs.androidx.constraintlayout)
withVersion("2.2.5") { implementation(libs.androidx.room.runtime)
implementation("androidx.room", "room-runtime", version) kapt(libs.androidx.room.compiler)
kapt("androidx.room", "room-compiler", version) implementation(libs.androidx.room.rxjava)
implementation("androidx.room", "room-rxjava2", version) testImplementation(libs.androidx.room.testing)
testImplementation("androidx.room", "room-testing", version) implementation(libs.androidx.lifecycle.extensions)
} implementation(libs.androidx.lifecycle.reactivestreams)
withVersion("2.2.0") {
implementation("androidx.lifecycle", "lifecycle-extensions", version)
implementation("androidx.lifecycle", "lifecycle-reactivestreams", version)
}
testImplementation("androidx.arch.core", "core-testing", "2.1.0")
implementation(project(":lifecycle-ktx")) implementation(project(":lifecycle-ktx"))
implementation(libs.androidx.paging.runtime)
implementation("androidx.paging", "paging-runtime", "2.1.2") implementation(libs.androidx.multidex)
implementation("androidx.multidex", "multidex", "2.0.1")
// Utility // Utility
implementation("io.reactivex.rxjava2", "rxandroid", "2.1.1") implementation(libs.rxjava.android)
implementation("io.reactivex.rxjava2", "rxjava", "2.2.12") implementation(libs.rxjava.java)
implementation("org.threeten", "threetenbp", "1.4.0", classifier = "no-tzdb") implementation(libs.threetenbp) {
implementation("org.jetbrains", "annotations", "17.0.0") artifact { classifier = "no-tzdb" }
implementation("com.google.code.gson", "gson", "2.8.5") }
implementation("commons-codec", "commons-codec", "1.13") implementation(libs.annotations.jetbrains)
implementation("com.squareup.retrofit2", "retrofit", "2.6.1") implementation(libs.gson)
implementation("com.squareup.retrofit2", "converter-gson", "2.6.1") implementation(libs.commons.codec)
implementation("com.github.pwittchen", "reactivenetwork-rx2", "3.0.6") implementation(libs.reactivenetwork)
withVersion("10.1.0") { implementation(libs.retrofit.core)
implementation("com.jakewharton", "butterknife", version) implementation(libs.retrofit.converter.gson)
kapt("com.jakewharton", "butterknife-compiler", version) implementation(libs.butterknife.core)
} kapt(libs.butterknife.compiler)
// Quassel // Quassel
implementation(project(":viewmodel")) implementation(project(":viewmodel"))
...@@ -113,53 +104,38 @@ dependencies { ...@@ -113,53 +104,38 @@ dependencies {
} }
// UI // UI
implementation("com.leinardi.android", "speed-dial", "3.2.0") implementation(libs.speeddial)
implementation("me.zhanghai.android.materialprogressbar", "library", "1.6.1") implementation(libs.materialprogressbar)
implementation("com.google.android.flexbox", "flexbox", "3.0.0") implementation(libs.flexbox)
implementation(project(":ui_spinner")) implementation(project(":ui_spinner"))
withVersion("0.9.6.0") { implementation(libs.materialdialogs.core)
implementation("com.afollestad.material-dialogs", "core", version) implementation(libs.materialdialogs.commons)
implementation("com.afollestad.material-dialogs", "commons", version) implementation(libs.glide.core)
} implementation(libs.glide.recyclerview)
withVersion("4.9.0") { kapt(libs.glide.compiler)
implementation("com.github.bumptech.glide", "glide", version)
implementation("com.github.bumptech.glide", "recyclerview-integration", version)
kapt("com.github.bumptech.glide", "compiler", version)
}
// Quality Assurance // Quality Assurance
implementation(project(":malheur")) implementation(project(":malheur"))
withVersion("2.2") { debugImplementation(libs.leakcanary.android)
debugImplementation("com.squareup.leakcanary", "leakcanary-android", version)
}
// Dependency Injection // Dependency Injection
withVersion("2.24") { implementation(libs.dagger.core)
implementation("com.google.dagger", "dagger", version) kapt(libs.dagger.compiler)
kapt("com.google.dagger", "dagger-compiler", version) kapt(libs.dagger.processor)
kapt("com.google.dagger", "dagger-android-processor", version) implementation(libs.dagger.android.core)
implementation("com.google.dagger", "dagger-android", version) implementation(libs.dagger.android.support)
implementation("com.google.dagger", "dagger-android-support", version)
} testImplementation(libs.junit)
testImplementation(libs.androidx.test.core)
testImplementation("junit", "junit", "4.12") testImplementation(libs.robolectric) {
testImplementation("org.robolectric", "robolectric", "4.3.1") {
exclude(group = "org.threeten", module = "threetenbp") exclude(group = "org.threeten", module = "threetenbp")
exclude(group = "com.google.auto.service", module = "auto-service") exclude(group = "com.google.auto.service", module = "auto-service")
} }
androidTestImplementation("junit", "junit", "4.12") androidTestImplementation(libs.junit)
androidTestImplementation("androidx.test.espresso", "espresso-core", "3.3.0-alpha02") androidTestImplementation(libs.androidx.test.espresso.core)
androidTestImplementation("androidx.test.espresso", "espresso-contrib", "3.3.0-alpha02") androidTestImplementation(libs.androidx.test.espresso.contrib)
androidTestImplementation("androidx.test.ext", "junit", "1.1.2-alpha02") androidTestImplementation(libs.androidx.test.junit)
androidTestImplementation("androidx.test", "runner", "1.3.0-alpha02") androidTestImplementation(libs.androidx.test.runner)
androidTestImplementation("androidx.test", "rules", "1.3.0-alpha02") androidTestImplementation(libs.androidx.test.rules)
}
data class VersionContext<T>(val version: T)
inline fun <T> withVersion(version: T?, f: VersionContext<T>.() -> Unit) {
version?.let {
f.invoke(VersionContext(version))
}
} }
import gradle.kotlin.dsl.accessors._5ee02a09f3b6dcc9700f8e51e448c252.implementation
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins { plugins {
...@@ -7,6 +8,10 @@ plugins { ...@@ -7,6 +8,10 @@ plugins {
kotlin("kapt") kotlin("kapt")
} }
dependencies {
implementation("org.jetbrains.kotlin:kotlin-stdlib:1.6.10")
}
tasks.withType<KotlinCompile> { tasks.withType<KotlinCompile> {
kotlinOptions { kotlinOptions {
freeCompilerArgs = listOf( freeCompilerArgs = listOf(
......
...@@ -8,6 +8,10 @@ plugins { ...@@ -8,6 +8,10 @@ plugins {
kotlin("kapt") kotlin("kapt")
} }
dependencies {
implementation("org.jetbrains.kotlin:kotlin-stdlib:1.6.10")
}
tasks.withType<KotlinCompile> { tasks.withType<KotlinCompile> {
kotlinOptions { kotlinOptions {
freeCompilerArgs = listOf( freeCompilerArgs = listOf(
......
[versions]
androidx-appcompat = "1.1.0"
androidx-espresso = "3.3.0-alpha02"
androidx-lifecycle = "2.2.0"
androidx-room = "2.2.5"
androidx-test = "1.3.0-alpha02"
butterknife = "10.1.0"
dagger = "2.24"
glide = "4.9.0"
kotlin = "1.6.10"
materialdialogs = "0.9.6.0"
retrofit = "2.6.1"
[libraries]
androidx-annotation = { module = "androidx.annotation:annotation", version.ref = "androidx-appcompat" }
androidx-appcompat = { module = "androidx.appcompat:appcompat", version.ref = "androidx-appcompat" }
androidx-browser = { module = "androidx.browser:browser", version = "1.2.0" }
androidx-cardview = { module = "androidx.cardview:cardview", version = "1.0.0" }
androidx-constraintlayout = { module = "androidx.constraintlayout:constraintlayout", version = "2.0.0-beta4" }
androidx-legacy = { module = "androidx.legacy:legacy-preference-v14", version = "1.0.0" }
androidx-lifecycle-common = { module = "androidx.lifecycle:lifecycle-common", version.ref = "androidx-lifecycle" }
androidx-lifecycle-extensions = { module = "androidx.lifecycle:lifecycle-extensions", version.ref = "androidx-lifecycle" }
androidx-lifecycle-reactivestreams = { module = "androidx.lifecycle:lifecycle-reactivestreams", version.ref = "androidx-lifecycle" }
androidx-material = { module = "com.google.android.material:material", version = "1.1.0-alpha10" }
androidx-multidex = { module = "androidx.multidex:multidex", version = "2.0.1" }
androidx-paging-runtime = { module = "androidx.paging:paging-runtime", version = "2.1.2" }
androidx-preference = { module = "androidx.preference:preference", version = "1.1.0" }
androidx-recyclerview = { module = "androidx.recyclerview:recyclerview", version = "1.1.0" }
androidx-room-compiler = { module = "androidx.room:room-compiler", version.ref = "androidx-room" }
androidx-room-runtime = { module = "androidx.room:room-runtime", version.ref = "androidx-room" }
androidx-room-rxjava = { module = "androidx.room:room-rxjava2", version.ref = "androidx-room" }
androidx-room-testing = { module = "androidx.room:room-testing", version.ref = "androidx-room" }
androidx-swiperefreshlayout = { module = "androidx.swiperefreshlayout:swiperefreshlayout", version = "1.1.0-beta01" }
androidx-test-core = { module = "androidx.arch.core:core-testing", version = "2.1.0" }
androidx-test-espresso-contrib = { module = "androidx.test.espresso:espresso-contrib", version.ref = "androidx-espresso" }
androidx-test-espresso-core = { module = "androidx.test.espresso:espresso-core", version.ref = "androidx-espresso" }
androidx-test-junit = { module = "androidx.test.ext:junit", version = "1.1.2-alpha02" }
androidx-test-rules = { module = "androidx.test:rules", version.ref = "androidx-test" }
androidx-test-runner = { module = "androidx.test:runner", version.ref = "androidx-test" }
annotations-inject = { module = "javax.inject:javax.inject", version = "1" }
annotations-jetbrains = { module = "org.jetbrains:annotations", version = "17.0.0" }
butterknife-compiler = { module = "com.jakewharton:butterknife-compiler", version.ref = "butterknife" }
butterknife-core = { module = "com.jakewharton:butterknife", version.ref = "butterknife" }
commons-codec = { module = "commons-codec:commons-codec", version = "1.13" }
dagger-android-core = { module = "com.google.dagger:dagger-android", version.ref = "dagger" }
dagger-android-support = { module = "com.google.dagger:dagger-android-support", version.ref = "dagger" }
dagger-compiler = { module = "com.google.dagger:dagger-compiler", version.ref = "dagger" }
dagger-core = { module = "com.google.dagger:dagger", version.ref = "dagger" }
dagger-processor = { module = "com.google.dagger:dagger-android-processor", version.ref = "dagger" }
flexbox = { module = "com.google.android.flexbox:flexbox", version = "3.0.0" }
glide-compiler = { module = "com.github.bumptech.glide:compiler", version.ref = "glide" }
glide-core = { module = "com.github.bumptech.glide:glide", version.ref = "glide" }
glide-recyclerview = { module = "com.github.bumptech.glide:recyclerview-integration", version.ref = "glide" }
gson = { module = "com.google.code.gson:gson", version = "2.8.5" }
junit = { module = "junit:junit", version = "4.12" }
kotlinpoet = { module = "com.squareup:kotlinpoet", version = "1.8.0" }
ksp = { module = "com.google.devtools.ksp:symbol-processing-api", version = "1.6.10-1.0.4" }
leakcanary-android = { module = "com.squareup.leakcanary:leakcanary-android", version = "2.2" }
materialdialogs-commons = { module = "com.afollestad.material-dialogs:commons", version.ref = "materialdialogs" }
materialdialogs-core = { module = "com.afollestad.material-dialogs:core", version.ref = "materialdialogs" }
materialprogressbar = { module = "me.zhanghai.android.materialprogressbar:library", version = "1.6.1" }
reactivenetwork = { module = "com.github.pwittchen:reactivenetwork-rx2", version = "3.0.6" }
retrofit-converter-gson = { module = "com.squareup.retrofit2:converter-gson", version.ref = "retrofit" }
retrofit-core = { module = "com.squareup.retrofit2:retrofit", version.ref = "retrofit" }
robolectric = { module = "org.robolectric:robolectric", version = "4.3.1" }
rxjava-android = { module = "io.reactivex.rxjava2:rxandroid", version = "2.1.1" }
rxjava-java = { module = "io.reactivex.rxjava2:rxjava", version = "2.2.12" }
speeddial = { module = "com.leinardi.android:speed-dial", version = "3.2.0" }
threetenbp = { module = "org.threeten:threetenbp", version = "1.4.0" }
...@@ -7,7 +7,7 @@ repositories { ...@@ -7,7 +7,7 @@ repositories {
} }
dependencies { dependencies {
implementation("com.google.devtools.ksp:symbol-processing-api:1.6.10-1.0.4") implementation(libs.ksp)
implementation(libs.kotlinpoet)
implementation(project(":invokerannotations")) implementation(project(":invokerannotations"))
implementation("com.squareup", "kotlinpoet", "1.8.0")
} }
...@@ -22,15 +22,13 @@ plugins { ...@@ -22,15 +22,13 @@ plugins {
} }
dependencies { dependencies {
implementation(kotlin("stdlib", "1.6.10")) implementation(libs.androidx.annotation)
implementation("androidx.annotation", "annotation", "1.1.0") implementation(libs.threetenbp)
implementation(libs.rxjava.java)
implementation("org.threeten", "threetenbp", "1.4.0")
implementation("io.reactivex.rxjava2", "rxjava", "2.2.12")
implementation(project(":invokerannotations")) implementation(project(":invokerannotations"))
ksp(project(":invokergenerator")) ksp(project(":invokergenerator"))
testImplementation("junit", "junit", "4.12") testImplementation(libs.junit)
} }
...@@ -21,9 +21,6 @@ plugins {id("justjanne.kotlin") ...@@ -21,9 +21,6 @@ plugins {id("justjanne.kotlin")
} }
dependencies { dependencies {
implementation(kotlin("stdlib", "1.6.10")) implementation(libs.androidx.annotation)
implementation(libs.androidx.lifecycle.common)
implementation("androidx.annotation", "annotation", "1.1.0")
implementation("androidx.lifecycle", "lifecycle-common", "2.1.0")
} }
...@@ -22,8 +22,6 @@ plugins { ...@@ -22,8 +22,6 @@ plugins {
} }
dependencies { dependencies {
implementation(kotlin("stdlib", "1.6.10")) implementation(libs.gson)
implementation(libs.androidx.annotation)
implementation("com.google.code.gson", "gson", "2.8.5")
implementation("androidx.annotation", "annotation", "1.1.0")
} }
...@@ -22,33 +22,23 @@ plugins { ...@@ -22,33 +22,23 @@ plugins {
} }
dependencies { dependencies {
implementation(kotlin("stdlib", "1.6.10")) implementation(libs.androidx.appcompat)
implementation("androidx.appcompat", "appcompat", "1.1.0") implementation(libs.androidx.room.runtime)
kapt(libs.androidx.room.compiler)
implementation(libs.androidx.room.rxjava)
testImplementation(libs.androidx.room.testing)
withVersion("2.2.5") { implementation(libs.androidx.paging.runtime)
implementation("androidx.room", "room-runtime", version)
kapt("androidx.room", "room-compiler", version)
implementation("androidx.room", "room-rxjava2", version)
testImplementation("androidx.room", "room-testing", version)
}
implementation("androidx.paging", "paging-runtime", "2.1.2")
// Utility // Utility
implementation("org.threeten", "threetenbp", "1.4.0", classifier = "no-tzdb") implementation(libs.threetenbp) {
implementation("org.jetbrains", "annotations", "17.0.0") artifact { classifier = "no-tzdb"}
}
implementation(libs.annotations.jetbrains)
// Quassel // Quassel
implementation(project(":lib")) { implementation(project(":lib")) {
exclude(group = "org.threeten", module = "threetenbp") exclude(group = "org.threeten", module = "threetenbp")
} }
} }
data class VersionContext<T>(val version: T)
inline fun <T> withVersion(version: T?, f: VersionContext<T>.() -> Unit) {
version?.let {
f.invoke(VersionContext(version))
}
}
...@@ -22,6 +22,5 @@ plugins { ...@@ -22,6 +22,5 @@ plugins {
} }
dependencies { dependencies {
implementation(kotlin("stdlib", "1.6.10")) implementation(libs.androidx.appcompat)
implementation("androidx.appcompat", "appcompat", "1.1.0")
} }
...@@ -22,21 +22,19 @@ plugins { ...@@ -22,21 +22,19 @@ plugins {
} }
dependencies { dependencies {
implementation(kotlin("stdlib", "1.6.10")) implementation(libs.androidx.appcompat)
implementation(libs.androidx.lifecycle.extensions)
implementation("androidx.appcompat", "appcompat", "1.1.0") implementation(libs.androidx.lifecycle.reactivestreams)
withVersion("2.2.0") {
implementation("androidx.lifecycle", "lifecycle-extensions", version)
implementation("androidx.lifecycle", "lifecycle-reactivestreams", version)
}
// Utility // Utility
implementation("io.reactivex.rxjava2", "rxandroid", "2.1.1") implementation(libs.rxjava.android)
implementation("io.reactivex.rxjava2", "rxjava", "2.2.12") implementation(libs.rxjava.java)
implementation("org.threeten", "threetenbp", "1.4.0", classifier = "no-tzdb") implementation(libs.threetenbp) {
implementation("org.jetbrains", "annotations", "17.0.0") artifact { classifier = "no-tzdb" }
}
implementation(libs.annotations.jetbrains)
implementation("javax.inject", "javax.inject", "1") implementation(libs.annotations.inject)
// Quassel // Quassel
implementation(project(":persistence")) implementation(project(":persistence"))
...@@ -44,13 +42,5 @@ dependencies { ...@@ -44,13 +42,5 @@ dependencies {
exclude(group = "org.threeten", module = "threetenbp") exclude(group = "org.threeten", module = "threetenbp")
} }
testImplementation("junit", "junit", "4.12") testImplementation(libs.junit)
}
data class VersionContext<T>(val version: T)
inline fun <T> withVersion(version: T?, f: VersionContext<T>.() -> Unit) {
version?.let {
f.invoke(VersionContext(version))
}
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment