Skip to content

Shading often corrupts non-code metadata in META-INF/MANIFEST.mf - #1762

Merged
elharo merged 4 commits into
masterfrom
elharo-patch-6
Nov 3, 2020
Merged

elharo merged 4 commits into
masterfrom
elharo-patch-6

Conversation

@elharo

@elharo elharo commented Oct 29, 2020

Copy link
Copy Markdown
Contributor

@google-cla google-cla Bot added the cla: yes label Oct 29, 2020
Comment thread docs/JLBP-0018.md Outdated
- Shading often corrupts non-code metadata in META-INF/MANIFEST.mf and other locations.
For instance, service entries under `META-INF/services` can easily need
special effort to be merged because the entries are located in the same place
for every jar.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Suggested change
for every jar.
for every JAR file.

https://docs.oracle.com/javase/tutorial/deployment/jar/basicsindex.html

"JAR" for the files. "jar" for the command.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

done

Comment thread docs/JLBP-0018.md Resolved
Comment thread docs/JLBP-0018.md Outdated
Comment on lines 26 to 27
For instance, service entries under `META-INF/services` can easily need
special effort to be merged because the entries are located in the same place

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

"can easily need special effort to be merged" is difficult to read. Can you make it active voice?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

improved

Comment thread docs/JLBP-0018.md
- Shading often corrupts non-code metadata in META-INF/MANIFEST.mf and other locations.
For instance, service entries under `META-INF/services` are hard
to merge because the entries are located in the same place
for every JAR file.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

(minor) Not every JAR file has META-INF/services.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Yes, that's one example of the sorts of problems that can happen. Not every shading will have this problem, or indeed any problem with metadata, but it can crop up.

@elharo
elharo merged commit 020c618 into master Nov 3, 2020
@elharo
elharo deleted the elharo-patch-6 branch November 3, 2020 20:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants