diff options
author | Harsh Shandilya <me@msfjarvis.dev> | 2021-12-22 21:47:19 +0530 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-12-22 16:17:19 +0000 |
commit | 126bed1a8b04a788fabc76dfa9037e10f6f71140 (patch) | |
tree | 51c71e54b7bace2740eb92765e756be30275a926 /build-logic/android-plugins/build.gradle.kts | |
parent | ae0afcc5854a89c6f1d460a95e4cd8bc206bcadd (diff) |
Upgrade to Gradle 7.3.3 (#1600)
* gradle: upgrade to 7.3.3
* build-logic: make Kotlin and Java targets match
Diffstat (limited to 'build-logic/android-plugins/build.gradle.kts')
-rw-r--r-- | build-logic/android-plugins/build.gradle.kts | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/build-logic/android-plugins/build.gradle.kts b/build-logic/android-plugins/build.gradle.kts index 413ab560..e013e9f8 100644 --- a/build-logic/android-plugins/build.gradle.kts +++ b/build-logic/android-plugins/build.gradle.kts @@ -3,11 +3,25 @@ * SPDX-License-Identifier: GPL-3.0-only */ +import org.gradle.api.JavaVersion +import org.gradle.api.tasks.compile.JavaCompile +import org.gradle.kotlin.dsl.withType +import org.jetbrains.kotlin.gradle.tasks.KotlinCompile + plugins { `kotlin-dsl` `kotlin-dsl-precompiled-script-plugins` } +tasks.withType<JavaCompile>().configureEach { + sourceCompatibility = JavaVersion.VERSION_11.toString() + targetCompatibility = JavaVersion.VERSION_11.toString() +} + +tasks.withType<KotlinCompile>().configureEach { + kotlinOptions { jvmTarget = JavaVersion.VERSION_11.toString() } +} + gradlePlugin { plugins { register("versioning") { |