summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--build-logic/build.gradle.kts24
1 files changed, 11 insertions, 13 deletions
diff --git a/build-logic/build.gradle.kts b/build-logic/build.gradle.kts
index 51b7232b..b138fa94 100644
--- a/build-logic/build.gradle.kts
+++ b/build-logic/build.gradle.kts
@@ -11,20 +11,18 @@ import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins { `kotlin-dsl` }
-afterEvaluate {
- tasks.withType<JavaCompile>().configureEach {
- sourceCompatibility = JavaVersion.VERSION_11.toString()
- targetCompatibility = JavaVersion.VERSION_11.toString()
- }
+tasks.withType<JavaCompile>().configureEach {
+ sourceCompatibility = JavaVersion.VERSION_11.toString()
+ targetCompatibility = JavaVersion.VERSION_11.toString()
+}
- tasks.withType<KotlinCompile>().configureEach {
- kotlinOptions {
- jvmTarget = JavaVersion.VERSION_11.toString()
- freeCompilerArgs = freeCompilerArgs + listOf(
- "-Xsam-conversions=class",
- "-opt-in=kotlin.RequiresOptIn",
- )
- }
+tasks.withType<KotlinCompile>().configureEach {
+ kotlinOptions {
+ jvmTarget = JavaVersion.VERSION_11.toString()
+ freeCompilerArgs = freeCompilerArgs + listOf(
+ "-Xsam-conversions=class",
+ "-opt-in=kotlin.RequiresOptIn",
+ )
}
}