summaryrefslogtreecommitdiff
path: root/build-logic/automation-plugins/build.gradle.kts
diff options
context:
space:
mode:
Diffstat (limited to 'build-logic/automation-plugins/build.gradle.kts')
-rw-r--r--build-logic/automation-plugins/build.gradle.kts14
1 files changed, 14 insertions, 0 deletions
diff --git a/build-logic/automation-plugins/build.gradle.kts b/build-logic/automation-plugins/build.gradle.kts
index 2375262a..130b0807 100644
--- a/build-logic/automation-plugins/build.gradle.kts
+++ b/build-logic/automation-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("crowdin") {