| 1 | Replace JARs with native binaries with ours. This isn't strictly
|
| 2 | necessary, but it's better for security reasons and also to be sure that
|
| 3 | the binaries will work correctly with musl.
|
| 4 |
|
| 5 | netty-transport-native-epoll contains only native binary that is loaded
|
| 6 | by transport-classes-epoll. It first attempts to load the binary from
|
| 7 | 'java.library.path' (/usr/lib, among others).
|
| 8 |
|
| 9 | |
| 10 | |
| 11 | @@ -950,7 +950,9 @@
|
| 12 | <dependency>
|
| 13 | <groupId>net.java.dev.jna</groupId>
|
| 14 | <artifactId>jna</artifactId>
|
| 15 | - <version>5.9.0</version>
|
| 16 | + <version>${alpine.jna.version}</version>
|
| 17 | + <scope>system</scope>
|
| 18 | + <systemPath>/usr/share/java/jna.jar</systemPath>
|
| 19 | </dependency>
|
| 20 | <dependency>
|
| 21 | <groupId>org.apache.lucene</groupId>
|
| 22 | @@ -1329,7 +1329,9 @@
|
| 23 | <dependency>
|
| 24 | <groupId>com.github.luben</groupId>
|
| 25 | <artifactId>zstd-jni</artifactId>
|
| 26 | - <version>1.5.0-4</version>
|
| 27 | + <version>${alpine.zstd-jni.version}</version>
|
| 28 | + <scope>system</scope>
|
| 29 | + <systemPath>/usr/share/java/zstd-jni.jar</systemPath>
|
| 30 | </dependency>
|
| 31 | <dependency>
|
| 32 | <groupId>io.netty</groupId>
|
| 33 | |
| 34 | |
| 35 | @@ -88,17 +88,10 @@
|
| 36 |
|
| 37 | <dependency>
|
| 38 | <groupId>io.netty</groupId>
|
| 39 | - <artifactId>netty-transport-native-epoll</artifactId>
|
| 40 | - <classifier>linux-x86_64</classifier>
|
| 41 | + <artifactId>netty-transport-classes-epoll</artifactId>
|
| 42 | </dependency>
|
| 43 |
|
| 44 | - <dependency>
|
| 45 | - <groupId>io.netty</groupId>
|
| 46 | - <artifactId>netty-transport-native-epoll</artifactId>
|
| 47 | - <classifier>linux-aarch_64</classifier>
|
| 48 | - </dependency>
|
| 49 | -
|
| 50 | <dependency>
|
| 51 | <groupId>org.apache.commons</groupId>
|
| 52 | <artifactId>commons-lang3</artifactId>
|
| 53 | </dependency>
|