diff options
author | Harsh Shandilya <me@msfjarvis.dev> | 2023-03-21 11:34:13 +0530 |
---|---|---|
committer | Harsh Shandilya <me@msfjarvis.dev> | 2023-03-21 13:43:09 +0530 |
commit | a6652134a252180c5ab2808b80146393745abe45 (patch) | |
tree | a0935f589497b16f4e1a9d0e863c424295bd4a02 /build-logic | |
parent | 66158adc13a4eb24a5e6fe7544b9eb1dceee5502 (diff) |
fix(build): remove unneeded `afterEvaluate`
https://docs.gradle.org/8.1-rc-1/release-notes.html#:~:text=Easier%20customization%20of%20Kotlin%20options
Diffstat (limited to 'build-logic')
-rw-r--r-- | build-logic/build.gradle.kts | 24 |
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", + ) } } |