Marc
10/17/2023, 2:45 PMgradle clean
and run the application the first time, it works. The second run results in that error.Marc
10/17/2023, 2:46 PMephemient
10/17/2023, 8:23 PMephemient
10/17/2023, 8:25 PM// Work around <https://youtrack.jetbrains.com/issue/KT-61273|https://youtrack.jetbrains.com/issue/KT-61273>
// Remove after upgrading to Kotlin 1.9.20
tasks.withType<org.jetbrains.kotlin.gradle.tasks.AbstractKotlinCompile<*>>().configureEach {
val snapshotsDir = layout.buildDirectory.dir("snapshot/kotlin/$name")
doFirst {
snapshotsDir.get().asFile.mkdirs()
}
}
Marc
10/18/2023, 4:07 AMephemient
10/18/2023, 10:17 PMbuild.gradle.kts
files for modules with kotlin compilations. (or in the root build wrapped in allprojects {}
, if you set up the classpath right to avoid conflicts, but that's not good practice in general)