aboutsummaryrefslogtreecommitdiff
path: root/build-logic/kotlin-plugins
diff options
context:
space:
mode:
authorHarsh Shandilya <me@msfjarvis.dev>2021-12-23 17:52:17 +0530
committerGitHub <noreply@github.com>2021-12-23 12:22:17 +0000
commit736f84acb4e17cc651d82e768b2bd393a815c0b1 (patch)
tree194cc8431c1349bd4c6c1c1190f8dacd81968cdf /build-logic/kotlin-plugins
parentcd61f58d44dcc00a31b8bf97ef74d84e5eb1cfbd (diff)
Misc cleanups and fixes (#1611)
Diffstat (limited to 'build-logic/kotlin-plugins')
-rw-r--r--build-logic/kotlin-plugins/build.gradle.kts14
1 files changed, 8 insertions, 6 deletions
diff --git a/build-logic/kotlin-plugins/build.gradle.kts b/build-logic/kotlin-plugins/build.gradle.kts
index 8b1a1889..229c5f17 100644
--- a/build-logic/kotlin-plugins/build.gradle.kts
+++ b/build-logic/kotlin-plugins/build.gradle.kts
@@ -13,13 +13,15 @@ plugins {
`kotlin-dsl-precompiled-script-plugins`
}
-tasks.withType<JavaCompile>().configureEach {
- sourceCompatibility = JavaVersion.VERSION_11.toString()
- targetCompatibility = JavaVersion.VERSION_11.toString()
-}
+afterEvaluate {
+ tasks.withType<JavaCompile>().configureEach {
+ sourceCompatibility = JavaVersion.VERSION_11.toString()
+ targetCompatibility = JavaVersion.VERSION_11.toString()
+ }
-tasks.withType<KotlinCompile>().configureEach {
- kotlinOptions { jvmTarget = JavaVersion.VERSION_11.toString() }
+ tasks.withType<KotlinCompile>().configureEach {
+ kotlinOptions { jvmTarget = JavaVersion.VERSION_11.toString() }
+ }
}
dependencies {