From 4c0187812392e4440fd620ed2742d3d4fafaad20 Mon Sep 17 00:00:00 2001 From: Davide Angelocola Date: Fri, 26 Jun 2026 20:02:16 +0200 Subject: [PATCH] build(zstd): single zstd-platform dependency (0.3) Bump io.github.dfa1.zstd to 0.3 and collapse the three OS-activated zstd-native- profiles into one dependency on the zstd-platform marker jar, which transitively brings the zstd binding plus the native libzstd for every supported platform. Declared optional/runtime at the parent level (mirroring the zstd binding's opt-in nature) so it is not forced on downstream consumers, and added to the BOM + dependencyManagement. Co-Authored-By: Claude Opus 4.8 --- CHANGELOG.md | 2 +- bom/pom.xml | 6 +++++ pom.xml | 76 +++++++++++++--------------------------------------- 3 files changed, 26 insertions(+), 58 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 0413f23e..d5247bdd 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -14,7 +14,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Changed -- The `vortex.zstd` encoding now compresses and decompresses through `io.github.dfa1.zstd:zstd` (FFM bindings to the native `libzstd`) instead of `io.airlift:aircompressor-v3`. Consumers of `vortex.zstd` must declare the `zstd` dependency plus the `zstd-native-` artifact for their platform (e.g. `zstd-native-osx-aarch64`, `zstd-native-linux-x86_64`). +- The `vortex.zstd` encoding now compresses and decompresses through `io.github.dfa1.zstd:zstd` (FFM bindings to the native `libzstd`) instead of `io.airlift:aircompressor-v3`. Consumers of `vortex.zstd` declare a single dependency, `io.github.dfa1.zstd:zstd-platform`, which transitively brings the `zstd` binding plus the native `libzstd` for every supported platform (replacing the former per-platform `zstd-native-` artifacts). ### Fixed diff --git a/bom/pom.xml b/bom/pom.xml index ed5e7a58..26d63f4d 100644 --- a/bom/pom.xml +++ b/bom/pom.xml @@ -24,6 +24,12 @@ zstd ${zstd.version} + + + io.github.dfa1.zstd + zstd-platform + ${zstd.version} + io.github.dfa1.vortex vortex-core diff --git a/pom.xml b/pom.xml index c8e465f8..eacd2db6 100644 --- a/pom.xml +++ b/pom.xml @@ -58,7 +58,7 @@ 25 UTF-8 - 0.2 + 0.3 4.3.0 @@ -195,6 +195,14 @@ zstd ${zstd.version} + + + io.github.dfa1.zstd + zstd-platform + ${zstd.version} + com.github.luben zstd-jni @@ -285,6 +293,16 @@ ${bytebuddy.version} test + + + io.github.dfa1.zstd + zstd-platform + runtime + true + @@ -436,62 +454,6 @@ - - - zstd-native-osx-aarch64 - - - mac - aarch64 - - - - - io.github.dfa1.zstd - zstd-native-osx-aarch64 - ${zstd.version} - runtime - - - - - zstd-native-linux-x86_64 - - - unix - linux - amd64 - - - - - io.github.dfa1.zstd - zstd-native-linux-x86_64 - ${zstd.version} - runtime - - - - - zstd-native-windows-x86_64 - - - windows - amd64 - - - - - io.github.dfa1.zstd - zstd-native-windows-x86_64 - ${zstd.version} - runtime - - -