summaryrefslogtreecommitdiff
path: root/build-logic/kotlin-plugins/build.gradle.kts
diff options
context:
space:
mode:
authorHarsh Shandilya <me@msfjarvis.dev>2021-12-22 21:47:19 +0530
committerGitHub <noreply@github.com>2021-12-22 16:17:19 +0000
commit126bed1a8b04a788fabc76dfa9037e10f6f71140 (patch)
tree51c71e54b7bace2740eb92765e756be30275a926 /build-logic/kotlin-plugins/build.gradle.kts
parentae0afcc5854a89c6f1d460a95e4cd8bc206bcadd (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/kotlin-plugins/build.gradle.kts')
-rw-r--r--build-logic/kotlin-plugins/build.gradle.kts14
1 files changed, 14 insertions, 0 deletions
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<JavaCompile>().configureEach {
+ sourceCompatibility = JavaVersion.VERSION_11.toString()
+ targetCompatibility = JavaVersion.VERSION_11.toString()
+}
+
+tasks.withType<KotlinCompile>().configureEach {
+ kotlinOptions { jvmTarget = JavaVersion.VERSION_11.toString() }
+}
+
dependencies {
implementation(libs.build.agp)
implementation(libs.build.binarycompat)