I'm seeing this implicit dependency error with `va...
# gradle
o
I'm seeing this implicit dependency error with `vanniktech/gradle-maven-publish-plugin`:
Copy code
Some problems were found with the configuration of task ':testBalloon-gradle-plugin:signMavenPublication' (type 'Sign').
- Gradle detected a problem with the following location: '/Users/runner/work/testBalloon/testBalloon/testBalloon-gradle-plugin/build/libs/testBalloon-gradle-plugin-0.8.0-Beta1-sources.jar.asc'.

  Reason: Task ':testBalloon-gradle-plugin:publishPluginMavenPublicationToMavenCentralRepository' uses this output of task ':testBalloon-gradle-plugin:signMavenPublication' without declaring an explicit or implicit dependency. This can lead to incorrect results being produced, depending on what order the tasks are executed.
Is there a way to properly test this locally, invoking
publishPluginMavenPublicationToMavenCentralRepository
without actually publishing?
v
Maybe use publish to maven local, or another local file-based repository and publish to that?
o
These don't depend on signing, right?
b
Had this ever since Gradle 8 with all our KMP projects. Our workaround: wire task dependencies manually. In addition, Kotlin 2.3 introduced some more dependencies between tasks that are not explicitly modelled, breaking CInterop, but we need to investigate further before we can file a proper report. Are your Kotlin 2.2 builds also affected?
r
You could run the build in dry-run mode? (Use -m or —dry-run)
c
b
Perfect! This is the issue i was looking for. Anybody want to bet when it will be fixed?
c
Well it's already 2 years old, so probably not anytime soon
o
You could run the build in dry-run mode? (Use -m or —dry-run)
No, I had tried that. It did not help. Now the problem has its workaround, so I don't need to try, but: You can probably test this locally by just invoking the Gradle
publishAndReleaseToMavenCentral
task. Without credentials, it will just fail when contacting Maven Central, but do everything up to that step, which should be sufficient to trigger the bug.
👍 1
For the record documenting it here. The underlying bug is with Gradle: https://github.com/gradle/gradle/issues/26091