Kotlin / kotlinx-atomicfu

The idiomatic way to use atomic operations in Kotlin
Other
844 stars 56 forks source link

Could not resolve all artifacts for configuration with AtomicFu "0.25.0" #447

Open amal opened 5 days ago

amal commented 5 days ago

With v0.25.0 and plugin connected by id as "org.jetbrains.kotlinx.atomicfu" I receive a project configuration error:

> Could not resolve all artifacts for configuration ':fluxo-io-rad:classpath'.
   > Could not find org.jetbrains.kotlinx:atomicfu-transformer:0.25.0.
     Searched in the following locations:
       - https://plugins.gradle.org/m2/org/jetbrains/kotlinx/atomicfu-transformer/0.25.0/atomicfu-transformer-0.25.0.pom
     Required by:
         project :fluxo-io-rad > org.jetbrains.kotlinx.atomicfu:org.jetbrains.kotlinx.atomicfu.gradle.plugin:0.25.0 > org.jetbrains.kotlinx:atomicfu-gradle-plugin:0.25.0

Seems like atomicfu-transformer artifact wasn't published both in gradle plugins portal and maven central.

mvicsokolova commented 5 days ago

Thank you! Publication failed for some reason, I've republished all the artifacts now. They should appear at mavenCentral soon.

eygraber commented 5 days ago

I'm not getting warnings about the artifact not being resolved anymore, but I get unresolved reference errors for kotlinx.atomicfu* with just the plugin applied. I can only get them to resolve by manually including the runtime dependency (implementation("org.jetbrains.kotlinx:atomicfu:0.25.0")). Is that expected?

mvicsokolova commented 4 days ago

No, this is not expected. Could you please share the part of the build script, where you apply the plugin? 👀

Do you apply it by the new id? Like this

plugins {
     id("org.jetbrains.kotlinx.atomicfu") version "0.25.0"
}
amal commented 4 days ago

Checked, seems to work now.

eygraber commented 4 days ago

No, this is not expected. Could you please share the part of the build script, where you apply the plugin?

I made a copy paste error. It's working fine, sorry about that.