Edoardo Luppi
08/31/2023, 11:45 AMCompile-only dependency for JVM and JS (no runtime dependencies)But then in the decompiled bytecode I find
private static final AtomicInt count = AtomicFU.atomic(0);
Which is part of the runtime. Am I missing something?andylamax
08/31/2023, 12:01 PMOleg Yukhnevich
08/31/2023, 12:03 PMEdoardo Luppi
08/31/2023, 12:13 PM[plugins]
kotlinx-atomicfu = { id = "org.jetbrains.kotlin.plugin.atomicfu", version.ref = "kotlin" }
And
plugins {
alias(libs.plugins.kotlinx.atomicfu)
}
Plus, applied
# AtomicFU transformation via compiler plugin
kotlinx.atomicfu.enableJsIrTransformation = true
kotlinx.atomicfu.enableJvmIrTransformation = true
And I can still AtomicFU stuff in decompiled code.
Not sure if I've missed a step.Oleg Yukhnevich
08/31/2023, 12:19 PMkotlinx-atomicfu
with version of a library f.e. 0.22.0 and not version of kotlin
what you have applied is just a compiler plugin
which is not enough in this caseEdoardo Luppi
08/31/2023, 12:34 PMOleg Yukhnevich
08/31/2023, 12:49 PMmbonnin
09/01/2023, 2:23 PMWondering why it's not published to the Gradle repository and it's still using the buildscript way of adding pluginsFWIW, these are 2 orthogonal things. What you want most of the times is the plugin marker to be published. You can publish them on Maven Central, this has nothing to do with the Gradle Plugin Portal.