Skip to content

Commit 487520b

Browse files
authored
Update: Android Gradle Plugin to 7.4 (#85)
This also includes other dependency updates and makes the minimum required Gradle version 7.5
1 parent 291429d commit 487520b

File tree

8 files changed

+28
-28
lines changed

8 files changed

+28
-28
lines changed

gradle/libs.versions.toml

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,25 @@
11
[versions]
22
androidMinSdk = "19"
3-
androidTargetSdk = "32"
4-
androidCompileSdk = "32"
5-
kotlin = "1.6.21"
6-
androidGradlePlugin = "7.3.0"
3+
androidTargetSdk = "33"
4+
androidCompileSdk = "33"
5+
kotlin = "1.7.21"
6+
androidGradlePlugin = "7.4.2"
77

88
[libraries]
9-
appCompat = { module = "androidx.appcompat:appcompat", version = "1.5.0" }
9+
appCompat = { module = "androidx.appcompat:appcompat", version = "1.6.1" }
1010
androidGradlePlugin = { module = "com.android.tools.build:gradle", version.ref = "androidGradlePlugin" }
1111
androidGradlePluginApi = { module = "com.android.tools.build:gradle-api", version.ref = "androidGradlePlugin" }
1212

1313
# Test dependencies
1414
junit = { module = "junit:junit", version = "4.13.2" }
1515
truth = { module = "com.google.truth:truth", version = "1.1.3" }
16-
supportTestRunner = { module = "androidx.test:runner", version = "1.4.0" }
17-
espressoCore = { module = "androidx.test.espresso:espresso-core", version = "3.4.0" }
18-
androidJUnit = { module = "androidx.test.ext:junit", version = "1.1.3" }
19-
commonsCsv = { module = "org.apache.commons:commons-csv", version = "1.9.0" }
16+
supportTestRunner = { module = "androidx.test:runner", version = "1.5.2" }
17+
espressoCore = { module = "androidx.test.espresso:espresso-core", version = "3.5.1" }
18+
androidJUnit = { module = "androidx.test.ext:junit", version = "1.1.5" }
19+
commonsCsv = { module = "org.apache.commons:commons-csv", version = "1.10.0" }
2020
kotlinTest = { module = "org.jetbrains.kotlin:kotlin-test", version.ref = "kotlin" }
21-
robolectric = { module = "org.robolectric:robolectric", version = "4.8.2" }
22-
mockk = { module = "io.mockk:mockk", version = "1.12.5" }
21+
robolectric = { module = "org.robolectric:robolectric", version = "4.10.2" }
22+
mockk = { module = "io.mockk:mockk", version = "1.13.5" }
2323

2424
[bundles]
2525
androidInstrumentedTest = ["supportTestRunner", "espressoCore", "androidJUnit"]
@@ -29,9 +29,9 @@ jvmTest = ["kotlinTest", "junit", "truth", "commonsCsv"]
2929
[plugins]
3030
kotlinJvm = { id = "org.jetbrains.kotlin.jvm", version.ref = "kotlin" }
3131
kotlinAndroid = { id = "org.jetbrains.kotlin.android", version.ref = "kotlin" }
32-
kotlinDokka = { id = "org.jetbrains.dokka", version.ref = "kotlin" }
32+
kotlinDokka = { id = "org.jetbrains.dokka", version = "1.7.20" }
3333
pluginPortalPublish = { id = "com.gradle.plugin-publish", version = "0.21.0" }
34-
mavenPublish = { id = "com.vanniktech.maven.publish", version = "0.21.0" }
35-
versionCheck = { id = "com.github.ben-manes.versions", version = "0.42.0" }
34+
mavenPublish = { id = "com.vanniktech.maven.publish", version = "0.25.2" }
35+
versionCheck = { id = "com.github.ben-manes.versions", version = "0.46.0" }
3636
androidApp = { id = "com.android.application", version.ref = "androidGradlePlugin"}
3737
androidLibrary = { id = "com.android.library", version.ref = "androidGradlePlugin"}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
3-
distributionUrl=https\://services.gradle.org/distributions/gradle-7.3.3-all.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-7.5.1-all.zip
44
zipStoreBase=GRADLE_USER_HOME
55
zipStorePath=wrapper/dists

plugin/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ plugins {
2020
// > ./gradlew clean test
2121

2222
java {
23-
sourceCompatibility = JavaVersion.VERSION_1_8
24-
targetCompatibility = JavaVersion.VERSION_1_8
23+
sourceCompatibility = JavaVersion.VERSION_11
24+
targetCompatibility = JavaVersion.VERSION_11
2525
}
2626

2727
jacocoTestReport {

plugin/src/test/kotlin/org/neotech/plugin/rootcoverage/IntegrationTest.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ class IntegrationTest(
161161

162162
val testFixtures =
163163
File("src/test/test-fixtures").listFiles()?.filter { it.isDirectory } ?: error("Could not list test fixture directories")
164-
val gradleVersions = arrayOf("7.4", "7.4.2", "7.5.1")
164+
val gradleVersions = arrayOf("7.5", "7.5.1", "7.6", "7.6.1")
165165
return testFixtures.flatMap { fixture ->
166166
val configurations = File(fixture, "configurations").listFiles() ?: error("Configurations folder not found in $fixture")
167167
configurations.flatMap { configuration ->

plugin/src/test/test-fixtures/multi-module/app/build.gradle

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@ android {
2929
}
3030

3131
compileOptions {
32-
sourceCompatibility JavaVersion.VERSION_1_8
33-
targetCompatibility JavaVersion.VERSION_1_8
32+
sourceCompatibility JavaVersion.VERSION_11
33+
targetCompatibility JavaVersion.VERSION_11
3434
}
3535

3636
testOptions {
@@ -49,7 +49,7 @@ android {
4949
}
5050

5151
kotlinOptions {
52-
jvmTarget = "1.8"
52+
jvmTarget = "11"
5353
}
5454
}
5555

plugin/src/test/test-fixtures/multi-module/library_android/build.gradle

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@ android {
2929
}
3030

3131
compileOptions {
32-
sourceCompatibility = JavaVersion.VERSION_1_8
33-
targetCompatibility = JavaVersion.VERSION_1_8
32+
sourceCompatibility = JavaVersion.VERSION_11
33+
targetCompatibility = JavaVersion.VERSION_11
3434
}
3535

3636
testOptions {
@@ -46,7 +46,7 @@ android {
4646
}
4747

4848
kotlinOptions {
49-
jvmTarget = "1.8"
49+
jvmTarget = "11"
5050
}
5151
}
5252

plugin/src/test/test-fixtures/multi-module/library_java/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,5 @@ dependencies {
66
implementation fileTree(dir: 'libs', include: ['*.jar'])
77
}
88

9-
sourceCompatibility = JavaVersion.VERSION_1_8
10-
targetCompatibility = JavaVersion.VERSION_1_8
9+
sourceCompatibility = JavaVersion.VERSION_11
10+
targetCompatibility = JavaVersion.VERSION_11

plugin/src/test/test-fixtures/multi-module/library_nested/java/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,5 @@ dependencies {
66
implementation fileTree(dir: 'libs', include: ['*.jar'])
77
}
88

9-
sourceCompatibility = JavaVersion.VERSION_1_8
10-
targetCompatibility = JavaVersion.VERSION_1_8
9+
sourceCompatibility = JavaVersion.VERSION_11
10+
targetCompatibility = JavaVersion.VERSION_11

0 commit comments

Comments
 (0)