From 736f84acb4e17cc651d82e768b2bd393a815c0b1 Mon Sep 17 00:00:00 2001 From: Harsh Shandilya Date: Thu, 23 Dec 2021 17:52:17 +0530 Subject: Misc cleanups and fixes (#1611) --- build-logic/kotlin-plugins/build.gradle.kts | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) (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 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().configureEach { - sourceCompatibility = JavaVersion.VERSION_11.toString() - targetCompatibility = JavaVersion.VERSION_11.toString() -} +afterEvaluate { + tasks.withType().configureEach { + sourceCompatibility = JavaVersion.VERSION_11.toString() + targetCompatibility = JavaVersion.VERSION_11.toString() + } -tasks.withType().configureEach { - kotlinOptions { jvmTarget = JavaVersion.VERSION_11.toString() } + tasks.withType().configureEach { + kotlinOptions { jvmTarget = JavaVersion.VERSION_11.toString() } + } } dependencies { -- cgit v1.2.3