Hi! I'm trying to publish a mutliplatform project ...
# multiplatform
t
Hi! I'm trying to publish a mutliplatform project (1.8.20) to maven, with Gradle (8.0.2) and there is an error I haven't been able to solve. The setup works with Gradle 7.6.1.
Copy code
Reason: Task ':rui-runtime:publishJvmPublicationToMavenCentralRepository' uses this output of task ':rui-runtime:signJsPublication' without declaring an explicit or implicit dependency.
Relevant setup:
Copy code
val javadocJar by tasks.registering(Jar::class) {
    archiveClassifier.set("javadoc")
}

signing {
    if (project.properties["signing.keyId"] == null) {
        useGpgCmd()
    }
    sign(publishing.publications)
}

publishing {
    // ...
    publications.withType<MavenPublication>().all {
        artifact(javadocJar.get())
        pom {
           // ...
        }
    }
}
Any ideas, suggestions how to get over this?
r
Do you use
de.marcphilipp.nexus-publish
gradle plugin?
j
The easier workaround is on the same crash. As @Robert Jaros mentioned, if yo are using that plugin there is an open issue for Gradle 8 compatibility.
t
Ah, no, I use the standard
maven-publish
I'll check it out, thanks.