Skip to content

Commit

Permalink
WA: Disable JS legacy transformation manually until it is completely …
Browse files Browse the repository at this point in the history
…removed from the atomicfu plugin. (#4223)

Fixes KT-71203

---------

Co-authored-by: Dmitry Khalanskiy <dmitry.khalanskiy@jetbrains.com>
  • Loading branch information
2 people authored and tbogdanova committed Sep 18, 2024
1 parent 8df571d commit 863575a
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
1 change: 1 addition & 0 deletions buildSrc/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -65,4 +65,5 @@ dependencies {
}
implementation("org.jetbrains.kotlinx:kotlinx-benchmark-plugin:0.4.9")
implementation("org.jetbrains.kotlinx:kotlinx-knit:${version("knit")}")
implementation("org.jetbrains.kotlinx:atomicfu-gradle-plugin:${version("atomicfu")}")
}
8 changes: 8 additions & 0 deletions buildSrc/src/main/kotlin/atomicfu-conventions.gradle.kts
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
plugins {
id("org.jetbrains.kotlinx.atomicfu")
}

// Workaround for KT-71203. Can be removed after https://github.com/Kotlin/kotlinx-atomicfu/issues/431
atomicfu {
transformJs = false
}
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import org.jetbrains.kotlin.gradle.tasks.*
configure(subprojects) {
val project = this
if (name in sourceless) return@configure
apply(plugin = "org.jetbrains.kotlinx.atomicfu")
apply(plugin = "atomicfu-conventions")
tasks.withType<KotlinCompilationTask<*>>().configureEach {
val isMainTaskName = name.startsWith("compileKotlin")
compilerOptions {
Expand Down

0 comments on commit 863575a

Please sign in to comment.