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

Fixes xprocessing jar to properly handle shading. #2767

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

copybara-service[bot]
Copy link

@copybara-service copybara-service bot commented Jul 21, 2021

Fixes xprocessing jar to properly handle shading.

The issue was due to incorrect handling of shading in jarjar for kotlin metadata. In particular, jarjar does not replace UTF8 usages in the classfile, so the Strings in the kotlin metadata do not get replaced. This breaks when the class is compiled with kotlinc which uses the kotlin metadata during compilation.

To fix this, I've switched to using shadowJar to do the shading (https://imperceptiblethoughts.com/shadow/).

Closes #2765

RELNOTES=Fix #2765: Fixes xprocessing jar to properly handle shading.

@google-cla google-cla bot added the cla: yes label Jul 21, 2021
@copybara-service copybara-service bot force-pushed the test_386099651 branch 5 times, most recently from 6f2f792 to 53543d6 Compare July 22, 2021 01:21
@copybara-service copybara-service bot changed the title Internal change Fixes xprocessing jar to properly handle shading. Jul 22, 2021
@copybara-service copybara-service bot force-pushed the test_386099651 branch 2 times, most recently from 12595fd to a028395 Compare July 22, 2021 16:41
The issue was due to incorrect handling of shading in jarjar for kotlin metadata. In particular, jarjar does not replace UTF8 usages in the classfile, so the Strings in the kotlin metadata do not get replaced. This breaks when the class is compiled with kotlinc which uses the kotlin metadata during compilation.

To fix this, I've switched to using shadowJar to do the shading (https://imperceptiblethoughts.com/shadow/).

Closes #2765

RELNOTES=Fix #2765: Fixes xprocessing jar to properly handle shading.
PiperOrigin-RevId: 386099651
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.

XBasicAnnotationProcessor not fully shaded and confuses kotlinc in 2.38
1 participant