aboutsummaryrefslogtreecommitdiff
path: root/build-logic/android-plugins/build.gradle.kts
diff options
context:
space:
mode:
Diffstat (limited to 'build-logic/android-plugins/build.gradle.kts')
-rw-r--r--build-logic/android-plugins/build.gradle.kts14
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") {