From 6294062d234da7aaa8d87589b549e5eedfe807ec Mon Sep 17 00:00:00 2001 From: luiz-otavio Date: Wed, 6 Apr 2022 00:32:55 -0300 Subject: [PATCH] chore(gradle): make supported OS for zstd compression --- build.gradle | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/build.gradle b/build.gradle index a4be69890..4f45aa49f 100644 --- a/build.gradle +++ b/build.gradle @@ -34,6 +34,16 @@ configurations { compile.extendsFrom shade } +// List of all supported OS for zstd compression (This is include only for anyone which is not using the default compression) +def supportedOS = [ + "linux_amd64", + "linux_i386", + "win_amd64", + "win_x86", + "darwin_x86_64", + "darwin_aarch64" +] + dependencies { // you may put jars on which you depend on in ./libs // or you may define them like so.. @@ -47,7 +57,12 @@ dependencies { // for more info... // http://www.gradle.org/docs/current/userguide/artifact_dependencies_tutorial.html // http://www.gradle.org/docs/current/userguide/dependency_management.html - shade 'com.github.luben:zstd-jni:1.5.2-2' +// shade 'com.github.luben:zstd-jni:1.5.2-2' - Remove almost implementations of zstd + + for (os in supportedOS) { + shade ("com.github.luben:zstd-jni:1.5.2-2:${os}") + } + } processResources