-
Notifications
You must be signed in to change notification settings - Fork 859
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 dependencies cleanup #556
Conversation
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've always had a hard time understanding when to use gradle api vs implementation. Thanks for cleaning this up.
But I don't understand why muzzle fails :( |
I think To make muzzle { pass { group = "io.opentracing.contrib.dropwizard" module = "dropwizard-opentracing" versions = "(,)" extraDependency 'io.opentelemetry:opentelemetry-contrib-auto-annotations:0.5.0' } } i think the "correct" way to deal with this is to split out the i'll turn this prototype into a follow-on PR after this one is merged |
@trask can you explain why current approach does not work? What is wrong with it? |
but instead we have a weird mix of treating it as a class we are instrumenting, but also as an internal class, e.g. we add it to the bootstrap classes in |
I see... Ok, I mostly understand, but why we have to split annotations instrumentation module? If we should treat |
Oh, I think this is the way to go:
I was going to say it's better when there's only a single compile-time dependency in each instrumentation module (and that's the dependency we put in the muzzle block). But then I realized that the We still need the |
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.
turned my comment above into a suggestion below
Partially adresses #351 .
This PR touches mostly "shared" modules, like
auto-bootstrap
orjava.gradle
to allow for meaningful review. Later PR will change "leave" modules, where changes are very mechanical.