Archived
fix: add picocli-codegen for GraalVM native-image support
The native binary was crashing on startup because picocli's reflection metadata wasn't being generated for GraalVM native-image. Added picocli-codegen annotation processor to generate the required reflect-config.json at compile time. Bumped version to 0.1.1. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
13655f5a54
commit
d6a27aab3b
3 files changed
+18
-2
No files matched your search
@@ -5,6 +5,11 @@ All notable changes to this project will be documented in this file.
|
||||
The format is based on [Keep a Changelog](https://keepachangelog.com/),
|
||||
and this project adheres to [Semantic Versioning](https://semver.org/).
|
||||
|
||||
## [0.1.1] - 2026-01-21
|
||||
|
||||
### Fixed
|
||||
- Native binary crashes on startup due to missing picocli reflection config
|
||||
|
||||
## [0.1.0] - 2026-01-21
|
||||
|
||||
### Added
|
||||
@@ -22,4 +27,5 @@ and this project adheres to [Semantic Versioning](https://semver.org/).
|
||||
- Jobs that fail to start now properly transition to FAILED state
|
||||
- Startup errors are written to stderr.log for visibility
|
||||
|
||||
[0.1.1]: https://github.com/samson-media/barn/releases/tag/v0.1.1
|
||||
[0.1.0]: https://github.com/samson-media/barn/releases/tag/v0.1.0
|
||||
@@ -6,7 +6,7 @@
|
||||
|
||||
<groupId>com.samsonmedia</groupId>
|
||||
<artifactId>barn</artifactId>
|
||||
<version>0.1.0</version>
|
||||
<version>0.1.1</version>
|
||||
<packaging>jar</packaging>
|
||||
|
||||
<name>Barn</name>
|
||||
@@ -135,6 +135,16 @@
|
||||
<arg>-Xlint:-processing</arg>
|
||||
<arg>-Werror</arg>
|
||||
</compilerArgs>
|
||||
<annotationProcessorPaths>
|
||||
<path>
|
||||
<groupId>info.picocli</groupId>
|
||||
<artifactId>picocli-codegen</artifactId>
|
||||
<version>${picocli.version}</version>
|
||||
</path>
|
||||
</annotationProcessorPaths>
|
||||
<compilerArgs combine.children="append">
|
||||
<arg>-Aproject=${project.groupId}/${project.artifactId}</arg>
|
||||
</compilerArgs>
|
||||
</configuration>
|
||||
</plugin>
|
||||
|
||||
|
||||
@@ -13,7 +13,7 @@ import picocli.CommandLine.Spec;
|
||||
@Command(
|
||||
name = "barn",
|
||||
mixinStandardHelpOptions = true,
|
||||
version = "barn 0.1.0-SNAPSHOT",
|
||||
version = "barn 0.1.1",
|
||||
description = "Cross-platform job daemon for media processing",
|
||||
subcommands = {
|
||||
RunCommand.class,
|
||||
|
||||
Reference in new issue
Block a user