diff options
author | Harsh Shandilya <me@msfjarvis.dev> | 2021-12-07 20:51:54 +0530 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-12-07 15:21:54 +0000 |
commit | 1df01a2f5486f400cac35af49f2fc474c5206204 (patch) | |
tree | c018633f54a96ac70ce3660fa2d4748175978bcd /build-logic | |
parent | 38bfcfdcaef8c71358b50171e384b88347ad3eed (diff) |
Upgrade workflows to use Java 17 (#1579)
Diffstat (limited to 'build-logic')
-rw-r--r-- | build-logic/kotlin-plugins/src/main/kotlin/com.github.android-password-store.kotlin-common.gradle.kts | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/build-logic/kotlin-plugins/src/main/kotlin/com.github.android-password-store.kotlin-common.gradle.kts b/build-logic/kotlin-plugins/src/main/kotlin/com.github.android-password-store.kotlin-common.gradle.kts index 71a68d9c..7ef59be9 100644 --- a/build-logic/kotlin-plugins/src/main/kotlin/com.github.android-password-store.kotlin-common.gradle.kts +++ b/build-logic/kotlin-plugins/src/main/kotlin/com.github.android-password-store.kotlin-common.gradle.kts @@ -4,6 +4,7 @@ */ import org.gradle.api.JavaVersion +import org.gradle.api.tasks.compile.JavaCompile import org.gradle.api.tasks.testing.Test import org.gradle.api.tasks.testing.logging.TestLogEvent import org.gradle.kotlin.dsl.withType @@ -11,6 +12,11 @@ import org.jetbrains.kotlin.gradle.tasks.KotlinCompile val additionalCompilerArgs = listOf("-Xopt-in=kotlin.RequiresOptIn") +tasks.withType<JavaCompile>().configureEach { + sourceCompatibility = JavaVersion.VERSION_11.toString() + targetCompatibility = JavaVersion.VERSION_11.toString() +} + tasks.withType<KotlinCompile>().configureEach { kotlinOptions { allWarningsAsErrors = true |