awslabs / awslabs/aws-crt-java
Add support for shading
- Dominant language
- Java
- Stars
- 76
- Forks
- 46
- PR merge metrics
- No merged PRs in 30d
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](https://github.com/netty/netty/commit/e5a31a4282072a792c4ab1edec5e8446a38b303a). They also had to take [special care](https://github.com/netty/netty/pull/8207) to make sure multiple shaded versions of their library could coexist peacefully.
Contributor guide
Assessment
This issue has not been assessed yet.