Skip to content

Commit

Permalink
Update dependency gradle to v8 (#40)
Browse files Browse the repository at this point in the history
* Update dependency gradle to v8

* Update compile options for gradle 8.x

* Update AGP version

* Update workflows java version

* Remove deprecated auto component creation

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Maxwell Mapako <[email protected]>
  • Loading branch information
renovate[bot] and wax911 authored May 20, 2023
1 parent 4adbd6b commit 7a1c471
Show file tree
Hide file tree
Showing 9 changed files with 12 additions and 39 deletions.
14 changes: 0 additions & 14 deletions .github/dependabot.yml

This file was deleted.

4 changes: 2 additions & 2 deletions .github/workflows/android-spotless.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@ jobs:

steps:
- uses: actions/checkout@v3
- name: set up JDK 11
- name: set up JDK 17
uses: actions/setup-java@v3
with:
java-version: '11'
java-version: 17
distribution: 'adopt'

- name: Grant execute permission for gradlew
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/android-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@ jobs:

steps:
- uses: actions/checkout@v3
- name: set up JDK 11
- name: set up JDK 17
uses: actions/setup-java@v3
with:
java-version: '11'
java-version: 17
distribution: 'adopt'

- name: Grant execute permission for gradlew
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/gradle-dokka.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ jobs:

steps:
- uses: actions/checkout@v3
- name: set up JDK 11
- name: set up JDK 17
uses: actions/setup-java@v3
with:
java-version: '11'
java-version: 17
distribution: 'adopt'

- name: Grant execute permission for gradlew
Expand Down
11 changes: 0 additions & 11 deletions buildSrc/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -19,17 +19,6 @@ repositories {
}
}

tasks.withType(KotlinCompile::class) {
sourceCompatibility = "11"
targetCompatibility = "11"
}

tasks.withType(KotlinJvmCompile::class) {
kotlinOptions {
jvmTarget = "11"
}
}

val libs get() = extensions.getByType<LibrariesForLibs>()

dependencies {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -121,8 +121,8 @@ internal fun Project.configureAndroid(): Unit = baseExtension().run {
}

compileOptions {
sourceCompatibility = JavaVersion.VERSION_11
targetCompatibility = JavaVersion.VERSION_11
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
}

tasks.withType(KotlinCompile::class.java) {
Expand All @@ -136,7 +136,7 @@ internal fun Project.configureAndroid(): Unit = baseExtension().run {

tasks.withType(KotlinJvmCompile::class.java) {
kotlinOptions {
jvmTarget = "11"
jvmTarget = "17"
}
}
}
4 changes: 1 addition & 3 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,4 @@ kapt.incremental.apt=true

# Improved file system watcher
# https://blog.gradle.org/introducing-file-system-watching
org.gradle.vfs.watch=true

android.disableAutomaticComponentCreation=true
org.gradle.vfs.watch=true
2 changes: 1 addition & 1 deletion gradle/libs.versions.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[versions]
ktlint = "0.40.0"

gradle-plugin = "7.4.0"
gradle-plugin = "8.0.1"

androidx-appcompat = "1.5.1"

Expand Down
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#Sun Dec 04 13:13:43 SAST 2022
distributionBase=GRADLE_USER_HOME
distributionUrl=https\://services.gradle.org/distributions/gradle-7.5-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.0-bin.zip
distributionPath=wrapper/dists
zipStorePath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME

0 comments on commit 7a1c471

Please sign in to comment.