Skip to content

Commit

Permalink
Merge pull request #14 from futuredapp/feature/update-gradle
Browse files Browse the repository at this point in the history
Update gradle plugin & Java 17
  • Loading branch information
davidkocnar authored Jul 11, 2023
2 parents bb835b8 + db821cc commit 7f3e048
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/enterprise.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
uses: actions/setup-java@v2
with:
distribution: 'zulu'
java-version: '11'
java-version: '17'
- name: Run check and Assemble APK
shell: bash
run: ./gradlew lintCheck assembleDevEnterprise
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pull_request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
uses: actions/setup-java@v2
with:
distribution: 'zulu'
java-version: '11'
java-version: '17'
- name: Run LintCheck
shell: bash
run: ./gradlew lintCheck
Expand Down
9 changes: 5 additions & 4 deletions app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -42,16 +42,17 @@ android.apply {

buildFeatures {
compose = true
buildConfig = true
}

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

kotlinOptions.apply {
jvmTarget = JavaVersion.VERSION_11.toString()
jvmTarget = JavaVersion.VERSION_17.toString()
}

composeOptions {
Expand Down Expand Up @@ -137,7 +138,7 @@ android.apply {
}

kotlin {
jvmToolchain(11)
jvmToolchain(17)
}

dependencies {
Expand Down
2 changes: 1 addition & 1 deletion buildSrc/src/main/kotlin/Versions.kt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
object Versions {

// gradle
const val androidGradlePlugin = "7.4.1"
const val androidGradlePlugin = "8.0.2"

// plugins
const val detekt = "1.22.0"
Expand Down
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-7.6-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.1.1-bin.zip

0 comments on commit 7f3e048

Please sign in to comment.