BootJar + MavenJar. Artifact Wasn't Produced By This Build
Answer : As stated by gradle documentation here: Starting from Gradle 6.2, Gradle performs a sanity check before uploading, to make sure you don’t upload stale files (files produced by another build). This introduces a problem with Spring Boot applications which are uploaded using the components.java component More explanation is available in the link above. They propose the following workaround that I personally tried and worked for me : configure the outgoing configurations configurations { [apiElements, runtimeElements].each { it.outgoing.artifacts.removeIf { it.buildDependencies.getDependencies(null).contains(jar) } it.outgoing.artifact(bootJar) } } here after the configuration from my build.gradle: .... apply plugin: 'maven-publish' ... configurations { [apiElements, runtimeElements].each { it.outgoing.artifacts.removeIf { it.buildDependencies.getDependencies(null).contains(jar) } it.outgoing.a...