New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Gradle Module Metadata for spring-integration-bom 5.4.7 missing from Maven Central #3570
Comments
Well, what I see the
And so on for all the modules we have in the project. The problem comes with Maven Central sync: it just does not allow to upload non-matching artifacts. As long as we all rely on Maven Central and since all other projects just ignore those artifacts, we are going to disable such a feature the way you suggest. Let me know if you can contribute the fix: https://github.com/spring-projects/spring-integration/blob/main/CONTRIBUTING.adoc Thank you! |
Fixes spring-projects#3570 The module file with the Gradle metadata cannot be published on Maven Central, which causes issues for some people using a repository manager such as Artifactory. If it doesn't return a 404 HTTP status, the build fails instead of ignoring the module.
There you go: #3571. Should I create similar pull requests for the |
Thanks. No, you don't need. We will review shortly and just cherry-pick your commit to those supported branches! |
Fixes #3570 The module file with the Gradle metadata cannot be published on Maven Central, which causes issues for some people using a repository manager such as Artifactory. If it doesn't return a 404 HTTP status, the build fails instead of ignoring the module. **Cherry-pick to `5.4.x` & `5.3.x`**
Fixes #3570 The module file with the Gradle metadata cannot be published on Maven Central, which causes issues for some people using a repository manager such as Artifactory. If it doesn't return a 404 HTTP status, the build fails instead of ignoring the module. **Cherry-pick to `5.4.x` & `5.3.x`**
Fixes #3570 The module file with the Gradle metadata cannot be published on Maven Central, which causes issues for some people using a repository manager such as Artifactory. If it doesn't return a 404 HTTP status, the build fails instead of ignoring the module. **Cherry-pick to `5.4.x` & `5.3.x`**
In what version(s) of Spring Integration are you seeing this issue?
5.4.7 (also present in 5.5.0)
Describe the bug
spring-integration-bom-5.4.7.pom
was generated with the following commentwhich triggers the download by Gradle of the
spring-integration-bom-5.4.7.module
artifact, however that artifact was not published to Maven Central. This is probably a consequence of an upgrade to Gradle 6.This is a problem when using Artifactory as a Maven proxy, because by default Artifactory returns a 403 HTTP status code for missing artifacts, and Gradle only ignores an absent
.module
when the repository returns a 404 HTTP status code. In my case (and others, probably), that means my build fails when it cannot downloadspring-integration-bom-5.4.7.module
. 😭See
0874760
for similar issues in other projects that have bit me in the past (through spring-boot-dependencies).
Expected behavior
It would be good if either the module file was published on Maven Central, or the Gradle metadata generation was disabled.
The text was updated successfully, but these errors were encountered: