-
Notifications
You must be signed in to change notification settings - Fork 188
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
Jitpack generates wrong Gradle metadata #4476
Comments
I am having the same issue. Any chance for this getting fixed? Thanks 👍 |
cc: @jitpack |
For anyone having this problem, there may be a solution: in your project instead adding the dependency to a classic platform
just apply a plugin which defines the constraints This can play well with Gradle 7.0 catalogs with this workaround |
I have the same issue. |
I have found a workaround: It works by disabling the Gradle metadata entirely, as the POM created as actually correct. Here's the snippet that needs to be added to the if(System.getenv("JITPACK") != null) {
tasks.withType<GenerateModuleMetadata> {
enabled = false
}
} |
This issue is stale because it has been open for 30 days with no activity. |
This issue was closed because it has been inactive for 14 days since being marked as stale. |
Describe the bug
Wrong Gradle metadata generated from build
To Reproduce
Steps to reproduce the behavior:
.module
metadata file, this is wrongExpected behavior
Run the very same command locally, you should get instead the following
This is a blocker, because downstream will cause the Idea Gradle project reload to fail because
kx.platform:source:0.0.9
will be seen as a normal dependency instead of a platformThe text was updated successfully, but these errors were encountered: