You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When building a project that uses AtomicFU with Kotlin 2.0.20-Beta1, I get this warning:
w: A compileOnly dependency is used in targets: Kotlin/JS.
Dependencies:
- org.jetbrains.kotlinx:atomicfu:0.25.0 (source sets: jsMain)
Using compileOnly dependencies in these targets is not currently supported, because compileOnly dependencies must be present during the compilation of projects that depend on this project.
To ensure consistent compilation behaviour, compileOnly dependencies should be exposed as api dependencies.
Example:
kotlin {
sourceSets {
nativeMain {
dependencies {
compileOnly("org.example:lib:1.2.3")
// additionally add the compileOnly dependency as an api dependency:
api("org.example:lib:1.2.3")
}
}
}
}
This warning can be suppressed in gradle.properties:
kotlin.suppressGradlePluginWarnings=IncorrectCompileOnlyDependencyWarning
The text was updated successfully, but these errors were encountered:
This is a new warning introduced in 2.0.20. When JS transformations are enabled (kotlinx.atomicfu.enableJsIrTransformation=true), atomicfu-gradle-plugin adds compileOnly dependency to the library, causing this warning.
This warning is not going to become an error, though users of the Kord library might be affected.
I will replace compileOnly with api dependency in the next kotlinx-atomicfu release.
When building a project that uses AtomicFU with Kotlin 2.0.20-Beta1, I get this warning:
The text was updated successfully, but these errors were encountered: