<https://kotlinlang.slack.com/archives/C3PQML5NU/p...
# gradle
s
https://kotlinlang.slack.com/archives/C3PQML5NU/p1740102615835909 I am still experiencing this issue, and am completely unsure on how I should solve it. I don't want to manually do a bunch of
dependsOn
, as that is brittle and prone to breaking. This is quite a serious issue, as it is causing all my CI builds to fail and is actively preventing me from publishing any releases. The project can be found here, and the latest build is currently failing.
I believe I have figured out why. the kotlin gradle plugin silently changed its behaviour from setting the archive appendix to setting the archive base name. The names for zip tasks are computed as:
Copy code
[archiveBaseName]-[archiveAppendix]-[archiveVersion]-[archiveClassifier].[archiveExtension]
I had the following code in my buildscript:
Copy code
tasks.withType<AbstractArchiveTask>().configureEach {
    archiveBaseName = project.name
}
Since previously it would set the
archiveAppendix
to be the platform target but it is now using the
archiveBaseName
, by configuring the
archiveBaseName
myself I'm unwittingly overwriting it and causing them all to conflict.
👌 1