Migrate Gradle dependencies to version catalogs (#8443)

### Description

Migrate Gradle dependencies to version catalogs. This is the modern
style of managing dependencies. Confirmed with diff on `./gradlew
:app:dependencies` that no versions changed.

### Checklist
<!-- 
To help us keep the issue tracker clean and work as efficient as
possible,
  please make sure that you have done all of the following.
You can tick the boxes below by placing an x inside the brackets like
this: [x]
-->
- [x] I have read the contribution guidelines:
https://github.com/AntennaPod/AntennaPod/blob/develop/CONTRIBUTING.md#submit-a-pull-request
- [x] I have performed a self-review of my code, going through my
changes line by line and carefully considering why this line change is
necessary
- [x] I have run the automated code checks using `./gradlew checkstyle
lint`
- [x] My code follows the style guidelines of the AntennaPod project:
https://antennapod.org/contribute/develop/app/code-style
- [x] I have mentioned the corresponding issue and the relevant keyword
(e.g., "Closes: #xy") in the description (see
https://docs.github.com/en/issues/tracking-your-work-with-issues/linking-a-pull-request-to-an-issue)
- [x] If it is a core feature, I have added automated tests
This commit is contained in:
Hans-Peter Lehmann
2026-05-17 07:49:45 +02:00
committed by GitHub
parent 6d19562b11
commit 3a7f18a7fa
41 changed files with 407 additions and 373 deletions

View File

@ -1,5 +1,5 @@
plugins {
id("com.android.library")
alias(libs.plugins.android.library)
}
apply from: "../../common.gradle"
apply from: "../../playFlavor.gradle"
@ -17,10 +17,10 @@ dependencies {
implementation project(':net:ssl')
implementation project(':storage:preferences')
annotationProcessor "androidx.annotation:annotation:$annotationVersion"
implementation "com.squareup.okhttp3:okhttp:$okhttpVersion"
implementation "com.squareup.okhttp3:okhttp-urlconnection:$okhttpVersion"
annotationProcessor libs.androidx.annotation
implementation libs.okhttp
implementation libs.okhttp.urlconnection
testImplementation "junit:junit:$junitVersion"
testImplementation "org.robolectric:robolectric:$robolectricVersion"
testImplementation libs.junit
testImplementation libs.robolectric
}

View File

@ -1,5 +1,5 @@
plugins {
id("com.android.library")
alias(libs.plugins.android.library)
}
apply from: "../../common.gradle"
apply from: "../../playFlavor.gradle"
@ -24,9 +24,9 @@ dependencies {
implementation project(':storage:preferences')
implementation project(':ui:i18n')
annotationProcessor "androidx.annotation:annotation:$annotationVersion"
annotationProcessor libs.androidx.annotation
implementation "io.reactivex.rxjava3:rxandroid:$rxAndroidVersion"
implementation "io.reactivex.rxjava3:rxjava:$rxJavaVersion"
implementation "com.squareup.okhttp3:okhttp:$okhttpVersion"
implementation libs.rxandroid
implementation libs.rxjava
implementation libs.okhttp
}

View File

@ -1,5 +1,5 @@
plugins {
id("com.android.library")
alias(libs.plugins.android.library)
id("java-test-fixtures")
}
apply from: "../../../common.gradle"
@ -18,10 +18,10 @@ dependencies {
implementation project(':net:common')
implementation project(':storage:preferences')
annotationProcessor "androidx.annotation:annotation:$annotationVersion"
implementation "org.apache.commons:commons-lang3:$commonslangVersion"
implementation "commons-io:commons-io:$commonsioVersion"
annotationProcessor libs.androidx.annotation
implementation libs.commons.lang3
implementation libs.commons.io
testImplementation "junit:junit:$junitVersion"
testImplementation "org.robolectric:robolectric:$robolectricVersion"
testImplementation libs.junit
testImplementation libs.robolectric
}

View File

@ -1,5 +1,5 @@
plugins {
id("com.android.library")
alias(libs.plugins.android.library)
id("java-test-fixtures")
}
apply from: "../../../common.gradle"
@ -24,25 +24,25 @@ dependencies {
implementation project(':ui:chapters')
implementation project(':ui:transcript')
annotationProcessor "androidx.annotation:annotation:$annotationVersion"
implementation "androidx.core:core:$coreVersion"
implementation 'androidx.documentfile:documentfile:1.0.1'
implementation "androidx.work:work-runtime:$workManagerVersion"
implementation "com.google.android.material:material:$googleMaterialVersion"
annotationProcessor libs.androidx.annotation
implementation libs.androidx.core
implementation libs.androidx.documentfile
implementation libs.androidx.work.runtime
implementation libs.google.material
implementation "com.squareup.okhttp3:okhttp:$okhttpVersion"
implementation "com.squareup.okhttp3:okhttp-urlconnection:$okhttpVersion"
implementation "commons-io:commons-io:$commonsioVersion"
implementation "org.apache.commons:commons-lang3:$commonslangVersion"
implementation "org.greenrobot:eventbus:$eventbusVersion"
implementation "com.github.bumptech.glide:glide:$glideVersion"
implementation "io.reactivex.rxjava3:rxandroid:$rxAndroidVersion"
implementation "io.reactivex.rxjava3:rxjava:$rxJavaVersion"
implementation "com.google.guava:guava:31.0.1-android"
implementation libs.okhttp
implementation libs.okhttp.urlconnection
implementation libs.commons.io
implementation libs.commons.lang3
implementation libs.eventbus
implementation libs.glide
implementation libs.rxandroid
implementation libs.rxjava
implementation libs.guava
testImplementation "junit:junit:$junitVersion"
testImplementation "org.robolectric:robolectric:$robolectricVersion"
testImplementation "org.awaitility:awaitility:$awaitilityVersion"
testImplementation "org.mockito:mockito-core:$mockitoVersion"
testImplementation "androidx.preference:preference:$preferenceVersion"
testImplementation libs.junit
testImplementation libs.robolectric
testImplementation libs.awaitility
testImplementation libs.mockito.core
testImplementation libs.androidx.preference
}

View File

@ -1,5 +1,5 @@
plugins {
id("com.android.library")
alias(libs.plugins.android.library)
}
apply from: "../../common.gradle"
apply from: "../../playFlavor.gradle"
@ -9,12 +9,12 @@ android {
}
dependencies {
annotationProcessor "androidx.annotation:annotation:$annotationVersion"
implementation "androidx.appcompat:appcompat:$appcompatVersion"
annotationProcessor libs.androidx.annotation
implementation libs.androidx.appcompat
implementation "com.squareup.okhttp3:okhttp:$okhttpVersion"
implementation libs.okhttp
playImplementation 'com.google.android.gms:play-services-base:17.5.0'
playImplementation libs.google.play.services.base
// This version should be updated regularly.
freeImplementation 'org.conscrypt:conscrypt-android:2.5.3'
freeImplementation libs.conscrypt.android
}

View File

@ -1,5 +1,5 @@
plugins {
id("com.android.library")
alias(libs.plugins.android.library)
}
apply from: "../../../common.gradle"
@ -10,14 +10,14 @@ android {
dependencies {
implementation project(':net:sync:service-interface')
annotationProcessor "androidx.annotation:annotation:$annotationVersion"
implementation "androidx.appcompat:appcompat:$appcompatVersion"
annotationProcessor libs.androidx.annotation
implementation libs.androidx.appcompat
implementation "com.squareup.okhttp3:okhttp:$okhttpVersion"
implementation "org.apache.commons:commons-lang3:$commonslangVersion"
implementation "commons-io:commons-io:$commonsioVersion"
implementation "io.reactivex.rxjava3:rxandroid:$rxAndroidVersion"
implementation "io.reactivex.rxjava3:rxjava:$rxJavaVersion"
implementation libs.okhttp
implementation libs.commons.lang3
implementation libs.commons.io
implementation libs.rxandroid
implementation libs.rxjava
testImplementation "junit:junit:$junitVersion"
testImplementation libs.junit
}

View File

@ -1,5 +1,5 @@
plugins {
id("com.android.library")
alias(libs.plugins.android.library)
}
apply from: "../../../common.gradle"
@ -11,7 +11,7 @@ dependencies {
implementation project(':model')
implementation project(':storage:preferences')
annotationProcessor "androidx.annotation:annotation:$annotationVersion"
implementation "io.reactivex.rxjava3:rxandroid:$rxAndroidVersion"
implementation "io.reactivex.rxjava3:rxjava:$rxJavaVersion"
annotationProcessor libs.androidx.annotation
implementation libs.rxandroid
implementation libs.rxjava
}

View File

@ -1,5 +1,5 @@
plugins {
id("com.android.library")
alias(libs.plugins.android.library)
}
apply from: "../../../common.gradle"
apply from: "../../../playFlavor.gradle"
@ -20,16 +20,16 @@ dependencies {
implementation project(':ui:i18n')
implementation project(':net:download:service-interface')
annotationProcessor "androidx.annotation:annotation:$annotationVersion"
implementation "androidx.core:core:$coreVersion"
implementation "androidx.work:work-runtime:$workManagerVersion"
annotationProcessor libs.androidx.annotation
implementation libs.androidx.core
implementation libs.androidx.work.runtime
implementation "org.greenrobot:eventbus:$eventbusVersion"
implementation "org.apache.commons:commons-lang3:$commonslangVersion"
implementation "com.squareup.okhttp3:okhttp:$okhttpVersion"
implementation "io.reactivex.rxjava3:rxandroid:$rxAndroidVersion"
implementation "io.reactivex.rxjava3:rxjava:$rxJavaVersion"
implementation "com.google.guava:guava:31.0.1-android"
implementation libs.eventbus
implementation libs.commons.lang3
implementation libs.okhttp
implementation libs.rxandroid
implementation libs.rxjava
implementation libs.guava
testImplementation "junit:junit:$junitVersion"
testImplementation libs.junit
}

View File

@ -1,5 +1,5 @@
plugins {
id("com.android.library")
alias(libs.plugins.android.library)
}
apply from: "../../../common.gradle"
@ -10,9 +10,9 @@ android {
dependencies {
implementation project(':model')
annotationProcessor "androidx.annotation:annotation:$annotationVersion"
implementation "com.google.android.gms:play-services-wearable:$wearableVersion"
annotationProcessor libs.androidx.annotation
implementation libs.google.play.services.wearable
testImplementation "junit:junit:$junitVersion"
testImplementation "org.robolectric:robolectric:$robolectricVersion"
testImplementation libs.junit
testImplementation libs.robolectric
}