|
58 | 58 | <maven.compiler.release>25</maven.compiler.release> |
59 | 59 | <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> |
60 | 60 | <!-- production --> |
61 | | - <zstd.version>0.2</zstd.version> |
| 61 | + <zstd.version>0.3</zstd.version> |
62 | 62 |
|
63 | 63 |
|
64 | 64 | <fastcsv.version>4.3.0</fastcsv.version> |
|
195 | 195 | <artifactId>zstd</artifactId> |
196 | 196 | <version>${zstd.version}</version> |
197 | 197 | </dependency> |
| 198 | + <dependency> |
| 199 | + <!-- Marker jar that transitively pulls zstd plus the native libzstd for every |
| 200 | + supported platform; the zstd FFM loader picks the one matching the runtime |
| 201 | + platform. Replaces the former per-platform zstd-native-<platform> artifacts. --> |
| 202 | + <groupId>io.github.dfa1.zstd</groupId> |
| 203 | + <artifactId>zstd-platform</artifactId> |
| 204 | + <version>${zstd.version}</version> |
| 205 | + </dependency> |
198 | 206 | <dependency> |
199 | 207 | <groupId>com.github.luben</groupId> |
200 | 208 | <artifactId>zstd-jni</artifactId> |
|
285 | 293 | <version>${bytebuddy.version}</version> |
286 | 294 | <scope>test</scope> |
287 | 295 | </dependency> |
| 296 | + <!-- Native libzstd for every supported platform, bundled by the zstd-platform marker |
| 297 | + jar; provides the runtime library the zstd FFM bindings load during our own build |
| 298 | + and tests. Optional like the zstd binding itself: not forced on downstream consumers, |
| 299 | + who add zstd-platform themselves (version pinned by the BOM). No per-OS profile. --> |
| 300 | + <dependency> |
| 301 | + <groupId>io.github.dfa1.zstd</groupId> |
| 302 | + <artifactId>zstd-platform</artifactId> |
| 303 | + <scope>runtime</scope> |
| 304 | + <optional>true</optional> |
| 305 | + </dependency> |
288 | 306 | </dependencies> |
289 | 307 |
|
290 | 308 | <build> |
|
436 | 454 | </build> |
437 | 455 |
|
438 | 456 | <profiles> |
439 | | - <profile> |
440 | | - <!-- io.github.dfa1.zstd:zstd ships no bundled native; its FFM loader reads |
441 | | - libzstd from a /native/<platform>/ classpath resource carried by a separate |
442 | | - zstd-native-<platform> artifact. Pull in the one matching the build host. |
443 | | - Add more platforms as needed. --> |
444 | | - <id>zstd-native-osx-aarch64</id> |
445 | | - <activation> |
446 | | - <os> |
447 | | - <family>mac</family> |
448 | | - <arch>aarch64</arch> |
449 | | - </os> |
450 | | - </activation> |
451 | | - <dependencies> |
452 | | - <dependency> |
453 | | - <groupId>io.github.dfa1.zstd</groupId> |
454 | | - <artifactId>zstd-native-osx-aarch64</artifactId> |
455 | | - <version>${zstd.version}</version> |
456 | | - <scope>runtime</scope> |
457 | | - </dependency> |
458 | | - </dependencies> |
459 | | - </profile> |
460 | | - <profile> |
461 | | - <id>zstd-native-linux-x86_64</id> |
462 | | - <activation> |
463 | | - <os> |
464 | | - <family>unix</family> |
465 | | - <name>linux</name> |
466 | | - <arch>amd64</arch> |
467 | | - </os> |
468 | | - </activation> |
469 | | - <dependencies> |
470 | | - <dependency> |
471 | | - <groupId>io.github.dfa1.zstd</groupId> |
472 | | - <artifactId>zstd-native-linux-x86_64</artifactId> |
473 | | - <version>${zstd.version}</version> |
474 | | - <scope>runtime</scope> |
475 | | - </dependency> |
476 | | - </dependencies> |
477 | | - </profile> |
478 | | - <profile> |
479 | | - <id>zstd-native-windows-x86_64</id> |
480 | | - <activation> |
481 | | - <os> |
482 | | - <family>windows</family> |
483 | | - <arch>amd64</arch> |
484 | | - </os> |
485 | | - </activation> |
486 | | - <dependencies> |
487 | | - <dependency> |
488 | | - <groupId>io.github.dfa1.zstd</groupId> |
489 | | - <artifactId>zstd-native-windows-x86_64</artifactId> |
490 | | - <version>${zstd.version}</version> |
491 | | - <scope>runtime</scope> |
492 | | - </dependency> |
493 | | - </dependencies> |
494 | | - </profile> |
495 | 457 | <profile> |
496 | 458 | <!-- Activated in CI: ./mvnw verify -P coverage --> |
497 | 459 | <!-- Attaches the JaCoCo agent to surefire/failsafe and writes one |
|
0 commit comments