Files
AntennaPod/build.gradle
Hans-Peter Lehmann a0252f17e8 Upgrade target API version (#8286)
### Description

Upgrade target API version. For this, we need to upgrade robolectric and
transitively also the Java version and spotbugs version

### 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
- [x] I have run the automated code checks using `./gradlew checkstyle
spotbugsPlayDebug spotbugsDebug :app:lintPlayDebug`
- [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
2026-02-18 13:03:21 +01:00

61 lines
1.5 KiB
Groovy

buildscript {
ext.agpVersion = "8.11.0"
}
plugins {
id 'com.android.application' version "$agpVersion" apply false
id 'com.android.library' version "$agpVersion" apply false
id 'com.github.spotbugs' version '4.8.0' apply false
id 'checkstyle'
}
project.ext {
// AndroidX
annotationVersion = "1.9.1"
appcompatVersion = "1.7.1"
coreVersion = "1.16.0"
fragmentVersion = "1.8.9"
mediaVersion = "1.6.0"
media3Version = "1.9.0"
paletteVersion = "1.0.0"
preferenceVersion = "1.2.1"
recyclerViewVersion = "1.4.0"
viewPager2Version = "1.1.0"
workManagerVersion = "2.10.3"
googleMaterialVersion = "1.12.0"
// Third-party
commonslangVersion = "3.18.0"
commonsioVersion = "2.5" // Recent versions cause ClassNotFoundException on Android 6
jsoupVersion = "1.15.1"
glideVersion = "4.16.0"
okhttpVersion = "4.12.0"
eventbusVersion = "3.3.1"
rxAndroidVersion = "3.0.2"
rxJavaVersion = "3.1.5"
//Tests
awaitilityVersion = "3.1.6"
junitVersion = "4.13"
robolectricVersion = "4.16"
espressoVersion = "3.5.0"
runnerVersion = "1.5.0"
rulesVersion = "1.5.0"
testCoreVersion = "1.5.0"
mockitoVersion = "5.15.2"
}
checkstyle {
toolVersion '10.3.1'
}
tasks.register('checkstyle', Checkstyle) {
minHeapSize = "200m"
maxHeapSize = "2g"
classpath = files()
source "${project.rootDir}"
exclude("**/generated-sources/**")
exclude("**/gen/**")
exclude("**/build/**")
exclude("**/generated/**")
}