-
-
Notifications
You must be signed in to change notification settings - Fork 255
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
Add tests for pom generation #1208
base: master
Are you sure you want to change the base?
Conversation
I am seeing that this is failing the bom generation tests. WIll take a look. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The change to unpack_coordinates
is a breaking change for our users. I've tried to suggest something we could try to meet all our needs.
It looks like the test failures are genuine. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we're almost there :)
@shs96c It looks like #1279 fixes my original complaint 😄 :
I merged master into this branch and now all it does is add some new tests. |
This adds tests for various pom generation scenarios.
Original context:
This fixes #1154
It seems like a bug that scope was being considered in the maven coordinates. I couldn't find any examples of that being the case. But it is common for
group:artifact:type:classifier:version
.Demo of the issue: vinnybod/bazel_java_example@classifier-pom
Because bom generation was the only thing depending on sending the scope as part of the GAV, I refactored
maven_utils.generate_pom
soversioned_dep_coordinates
andunversioned_dep_coordinates
are expected to already beunpacked
and_maven_dependencies_bom
sets the type/scope itself. I also added tests.