Skip to content
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

Fix javaagent publishing #3929

Merged
merged 2 commits into from
Aug 24, 2021

Conversation

mateuszrzeszutek
Copy link
Member

Fixes #3900

I have no idea why, but when you have the default shadowJar with empty classifier it'll overwrite the jar task output and get attached to the maven publication properly. So I switched those two shadowJar tasks that we had: now the default shadowJar builds the javaagent without exporters, no classifier (previously lightShadow); and a new custom shadow task builds the full javaagent with exporters and -all classifier (previously shadowJar).
It's similar to what was done in #3899, but we're publishing one more jar in this case.

Copy link
Member

@trask trask left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

❤️

@trask
Copy link
Member

trask commented Aug 24, 2021

@mateuszrzeszutek it looks like telemetry.auto.version / Implementation-Version got lost somehow

@@ -137,6 +132,7 @@ tasks {
archiveClassifier.set("")

manifest {
attributes(jar.get().manifest.attributes)
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have absolutely no idea how this worked without this line before 🙈

@trask trask merged commit 6ba9198 into open-telemetry:main Aug 24, 2021
trask added a commit that referenced this pull request Aug 24, 2021
* Fix javaagent publishing

* Take manifest attributes from the jar task too

Co-authored-by: Mateusz Rzeszutek <[email protected]>
@mateuszrzeszutek mateuszrzeszutek deleted the fix-javaagent-publishing branch November 18, 2022 10:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

opentelemetry-javaagent 1.5.0 published with packaging "pom" instead of "jar"
2 participants