You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The shadow jar artifact should be signed and published to repository.
Actual Behavior
The publication does not find the shadow jar artifact and errors out.
I have debugged the issue, and the issue occurs only when signing kicks off i.e. without signing the artifacts are referenced and published correctly. Further debugging revealed the issue exists because archiveBaseName and archiveClassifier are not honoured correctly by publication and tries to find the shadow jar which doesn't exist.
> * What went wrong:
> Execution failed for task ':clients:publishMavenJavaPublicationToMavenRepository'.
> > Failed to publish publication 'mavenJava' to repository 'maven'
> > Invalid publication 'mavenJava': artifact file does not exist: '/Users/apoorvmittal/kafka/.release_work_dir/kafka/clients/build/libs/clients-3.7.0-all.jar'
I have placed a workaround here which does solve the issue but introduces other where resultant pom doesn't include runtime dependencies.
Fix - Probable problem with version 8.1.1
Further debugging revealed that issue exists with 8.1.1 version and downgrading to 8.1.0 plugin version works correctly.
Shadow Version
'com.github.johnrengelman.shadow' version '8.1.1'
Gradle Version
8.5
Expected Behavior
The shadow jar artifact should be signed and published to repository.
Actual Behavior
The publication does not find the shadow jar artifact and errors out.
I have debugged the issue, and the issue occurs only when
signing
kicks off i.e. without signing the artifacts are referenced and published correctly. Further debugging revealed the issue exists becausearchiveBaseName
andarchiveClassifier
are not honoured correctly by publication and tries to find theshadow jar
which doesn't exist.I have placed a workaround here which does solve the issue but introduces other where resultant pom doesn't include runtime dependencies.
Fix - Probable problem with version 8.1.1
Further debugging revealed that issue exists with 8.1.1 version and downgrading to 8.1.0 plugin version works correctly.
Gradle Build Script(s)
Reference the complete script - here
The text was updated successfully, but these errors were encountered: