-
Notifications
You must be signed in to change notification settings - Fork 872
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
Rename spring instrumentation modules #1125
Rename spring instrumentation modules #1125
Conversation
It looks like this is failing:
for an interesting reason. Gradle is performing dependency substitution, thinking that the
I found this on google that seems to confirm this diagnosis: https://discuss.gradle.org/t/dependency-substitution-wrong-with-more-than-one-sub-project-with-same-name/7253/8 One option for this would be to give them unique names, e.g. adding the bolded line below into def setBuildFile(project) { if (['auto', 'library', 'testing'].contains(project.projectDir.name)) { project.name = "${project.projectDir.parentFile.name}-${project.projectDir.name}" project.buildFileName = "${project.projectDir.parentFile.name}-${project.projectDir.name}.gradle" } else { project.buildFileName = "${project.name}.gradle" } project.children.each { setBuildFile(it) } } Another option would be to update standard folder structure, e.g.
|
I think second option is better to make sure gradle tasks are clear (match folder name). A third option that comes to mind that's a questionable workaround is to do similar name mangling as option 1 but for For reference, here's the official=tracking issue (was so happy when Gradle 6.2 almost fixed it! :() |
I do type those gradle task names a lot, so probably would vote for the shorter names hack (your option 3), and hopefully this will be a temporary workaround (thanks for the link to the official gradle issue for this). Let's see if @iNikem has a preference. |
When we publish, we use only 2 groups: |
Hmm - I thought Gradle was using it's own project.group / project.name for this differentiation. Not sure setting the maven publication like that eagerly would change it, though worth a try maybe. |
No-no, not maven publication. I thought specifically about Gradle's own groupId and project name |
If we set the project name to a long name, tasks / project dependencies also have to use that long name, I think it's basically @trask's option 1. |
Yes, it is essentially the same as Trask's suggestion. I find it confusing if we have different names during development and when published. If we want shorter names during development, we can omit As usual, I will support that option, which results in smaller build scripts :) Less code is always better for me :) |
@dengliming I fixed the dupe problem in #1145 - can you try rebasing and see if it works ok? |
@anuraaga Is there anything else that needs to be modified?
|
Sorry, I found some copy-paste among or |
@anuraaga Can you rerun the CI to confirm these? |
@dengliming please rebase the PR |
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.
Thanks for moving us forward with this!
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.
Thanks for dealing with our config issues!
closes #1106