Add support for shading
Nobody has claimed this yet.
Assessment
- Difficulty
- 5/5
- Estimated time
- Over a week
- Newbie friendliness
- 35/100
- Issue type
- Feature
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- java
- Domain
- build-system
Research direction
Start by examining software.amazon.awssdk.crt.CRT#awsCrtInit and the native library loading path that produces UnsatisfiedLinkError. Compare the issue's Netty examples, then define a solution that supports renamed Java classes and native libraries while allowing multiple shaded versions to coexist.
Written by the indexing model from the issue text.
Description
It's currently not possible to shade aws-crt-java (rename its class files and native libraries and embed them into my own artifact). Renaming the class files itself works, but an UnsatisfiedLinkError is raised in software.amazon.awssdk.crt.CRT#awsCrtInit.
An ideal shading solution would allow for us to rename both the native libraries and the Java classes. As an example, Netty allows consumers to shade their classes and native libraries. They support a system property to allow customers to specify the prefix given to the libraries, though they later added support for automatically detecting the prefix. They also had to take special care to make sure multiple shaded versions of their library could coexist peacefully.
- Dominant language
- Java
- Stars
- 76
- Forks
- 46
- Avg merge
- 5h 58m
- Merged PRs (30d)
- 1
Getting set up
- No Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from awslabs/aws-crt-java
-
bug needs-triage
Difficulty 5/5 Over a week Newbie friendliness 8/100
awslabs/aws-crt-java#1018 ·
-
bug needs-triage potential-regression
Difficulty 4/5 3-5 days Newbie friendliness 45/100
awslabs/aws-crt-java#1013 · 3 comments ·
-
bug needs-triage
Difficulty 5/5 Over a week Newbie friendliness 35/100
awslabs/aws-crt-java#976 · 2 comments ·
-
bug needs-triage
Difficulty 4/5 3-5 days Newbie friendliness 30/100
awslabs/aws-crt-java#932 · 3 comments ·
-
feature-request p3
Difficulty 4/5 3-5 days Newbie friendliness 32/100
awslabs/aws-crt-java#919 · 3 comments · 3 reactions ·
All issues in awslabs/aws-crt-java
Similar issues
-
bug follow-up lane:backlog
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
Sanne/incus-spawn#1576 · 1 comment ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 69/100
checkstyle/checkstyle#22069 · 1 comment ·
Maintainers usually reply within 1 day
-
Difficulty 1/5 Under an hour Newbie friendliness 86/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 67/100
it-at-m/eNoVa-Editor#79 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
Maintainers usually reply within 1 day