From 126bed1a8b04a788fabc76dfa9037e10f6f71140 Mon Sep 17 00:00:00 2001 From: Harsh Shandilya Date: Wed, 22 Dec 2021 21:47:19 +0530 Subject: Upgrade to Gradle 7.3.3 (#1600) * gradle: upgrade to 7.3.3 * build-logic: make Kotlin and Java targets match --- build-logic/kotlin-plugins/build.gradle.kts | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'build-logic/kotlin-plugins') diff --git a/build-logic/kotlin-plugins/build.gradle.kts b/build-logic/kotlin-plugins/build.gradle.kts index d1c9a3af..8b1a1889 100644 --- a/build-logic/kotlin-plugins/build.gradle.kts +++ b/build-logic/kotlin-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().configureEach { + sourceCompatibility = JavaVersion.VERSION_11.toString() + targetCompatibility = JavaVersion.VERSION_11.toString() +} + +tasks.withType().configureEach { + kotlinOptions { jvmTarget = JavaVersion.VERSION_11.toString() } +} + dependencies { implementation(libs.build.agp) implementation(libs.build.binarycompat) -- cgit v1.2.3