-
Notifications
You must be signed in to change notification settings - Fork 8
fix(pom): remove classpath manifest entry #311
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
Conversation
Could you split these changes into a separate PR? I think we will want the classpath manifest piece to go into the next bugfix release, but the MXBean changes would need to wait for the next major or minor release. |
Actually, it looks like the MXBean changes would need to wait until we drop JDK 11 support:
|
5c9ad08
to
53f181d
Compare
79e6ef7
to
0acd2c6
Compare
Looks good, at least when using the |
Maybe we need to use a |
If there's some value in retaining the Class-Path attribute for non-shaded jars, then a profile could work. Although, even when building a shaded jar, the non-shaded jar is built too. We'd probably need to have it do both. |
I tried to put together a quick test of a sample application that consumes the non-shaded JAR, and it ended up with the application correctly loading the agent JAR but not having any of the agent dependencies on the classpath, so the agent failed miserably. That could be worked around at the application level by adding all of the agent's dependencies to the application classpath as well, but I think/hope that retaining the classpath manifest entry will avoid that step. Then again, our primary usecase is for the shaded JAR, and I'm not sure how big of a hurdle it is for any users who do need the non-shaded JAR to also have to figure out the agent dependency management, too. If this ends up being too much work then maybe we just go without it for now and wait until someone actually asks for it. |
0acd2c6
to
47d8a4c
Compare
47d8a4c
to
cf71cea
Compare
(cherry picked from commit ea171de)
fixes: #279
I also replaced the deprecated OperatingSystemMXBean methods.