From d6a27aab3b2f7c513b86e5db0bc21502946ad774 Mon Sep 17 00:00:00 2001 From: Daniel Samson <12231216+daniel-samson@users.noreply.github.com> Date: Wed, 21 Jan 2026 23:28:36 +0000 Subject: [PATCH] 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 --- CHANGELOG.md | 6 ++++++ pom.xml | 12 +++++++++++- .../java/com/samsonmedia/barn/cli/BarnCommand.java | 2 +- 3 files changed, 18 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 7e6cd36..73a7a17 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/pom.xml b/pom.xml index 0885345..c322860 100644 --- a/pom.xml +++ b/pom.xml @@ -6,7 +6,7 @@ com.samsonmedia barn - 0.1.0 + 0.1.1 jar Barn @@ -135,6 +135,16 @@ -Xlint:-processing -Werror + + + info.picocli + picocli-codegen + ${picocli.version} + + + + -Aproject=${project.groupId}/${project.artifactId} + diff --git a/src/main/java/com/samsonmedia/barn/cli/BarnCommand.java b/src/main/java/com/samsonmedia/barn/cli/BarnCommand.java index 89aa1c8..9471a1b 100644 --- a/src/main/java/com/samsonmedia/barn/cli/BarnCommand.java +++ b/src/main/java/com/samsonmedia/barn/cli/BarnCommand.java @@ -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,