gradle-maven-publish-plugin icon indicating copy to clipboard operation
gradle-maven-publish-plugin copied to clipboard

Gradle detecting problems with publish and sign dependencies for a multiplatform project

Open AlecKazakova opened this issue 2 years ago • 2 comments

If I run a publish task for a module which depends on another module

Gradle detected a problem with the following location: '~/Development/sqldelight/runtime/build/libs/runtime-2.1.0-SNAPSHOT-javadoc.jar.asc'. Reason: Task ':runtime:publishIosArm32PublicationToInstallLocallyRepository' uses this output of task ':runtime:signIosX64Publication'

This might actually be a bug with gradle or kotlin but its hard to tell. It looks like the publish task references the jar signature file, which got signed by a previous task, so gradle expects there to be a task dependency?

AlecKazakova avatar Apr 05 '22 16:04 AlecKazakova

It might be https://youtrack.jetbrains.com/issue/KT-46466 which I opened a long time ago but I'll take a look again what could be causing it.

gabrielittner avatar Apr 06 '22 18:04 gabrielittner

Unfortunately I didn't copy the pertinent info from the log and GitHub deleted it, but I believe this is the same issue https://github.com/vanniktech/gradle-maven-publish-plugin/issues/259

eygraber avatar Apr 26 '22 18:04 eygraber

Added the workaround from the youtrack ticket directly to the plugin so that you don't need to apply it manually on each project

gabrielittner avatar Sep 05 '22 10:09 gabrielittner