-
Notifications
You must be signed in to change notification settings - Fork 85
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
Fixes #145, #148 add codes to parse the <version> for the dependency in profile which is managed by <dependencyManagement> #155
Conversation
… the dependency in profile which is managed by <dependencyManagement>
Could you add a test case that maps to our Java client library scenario? Here's an example: https://github.com/googleapis/java-pubsub/blob/master/google-cloud-pubsub/pom.xml#L174 (ignore the added version in profile)
|
src/it/projects/profile-with-deps-inherit-parent-depMgmt-flatten-dep-all-inactive/pom.xml
Outdated
Show resolved
Hide resolved
src/it/projects/profile-with-deps-inherit-parent-depMgmt-flatten-dep-all-oss/bom/pom.xml
Outdated
Show resolved
Hide resolved
src/it/projects/profile-with-deps-inherit-parent-depMgmt-flatten-dep-all-oss/bom/pom.xml
Outdated
Show resolved
Hide resolved
src/it/projects/profile-with-deps-inherit-parent-depMgmt-flatten-dep-all-oss/bom/pom.xml
Outdated
Show resolved
Hide resolved
…oss to profile-with-deps-inherit-parent-depMgmt-flatten-dep-all-oss-bom
LGTM |
@saturnism @olamy PTAL |
+1 to moving the logic away from effective pom. but it still misses the question of what if the dep management section is kept. |
strippedDependencies.add( flattenedDep ); | ||
} | ||
} | ||
if (!strippedDependencies.isEmpty() || !isEmpty(profile.getRepositories())) { |
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.
style
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.
Updated
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.
except some nit picking changes look good even including good it test
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'm a little uncertain about what code styles and license rules apply here. @stephaniewang526 do you know?
src/it/projects/profile-with-deps-inherit-parent-depMgmt-flatten-dep-all-active/parent/pom.xml
Show resolved
Hide resolved
src/it/projects/profile-with-deps-inherit-parent-depMgmt-flatten-dep-all-active/pom.xml
Show resolved
Hide resolved
...it/projects/profile-with-deps-inherit-parent-depMgmt-flatten-dep-all-inactive/parent/pom.xml
Show resolved
Hide resolved
src/it/projects/profile-with-deps-inherit-parent-depMgmt-flatten-dep-all-oss-bom/verify.groovy
Show resolved
Hide resolved
@elharo historically the maven codestyle is used. But it's more relax here as well so the build do not fail for that. |
Fixes #145, #148 @stephaniewang526 @saturnism @elharo