fix: qbit metadata version comes from the build #20

Merged
KofTwentyTwo merged 1 commits from fix/producer-version-from-build into develop 2026-10-15 06:42:56 +00:00
KofTwentyTwo commented 2026-10-15 06:23:07 +00:00 (Migrated from github.com)

The producer hardcoded its version, so released artifacts reported a stale literal or -SNAPSHOT as the qbit's metadata version.

Fix: this follows the authentik pattern. A Maven-filtered qbit-crm.properties holds version=${project.version}, and the producer loads it. The tests assert that the producer version, the help bundle version and the artifact version are equal (surefire passes qbit.artifactVersion).

Codex notes:
Implemented in six files: pom.xml, qbit-crm.properties, CrmQBitProducer.java, both producer/help test files, and CHANGELOG.md.

  • ./mvnw.cmd -q verify passed: 490 tests.
  • RC.99 proof passed: all 13 version-related tests at 0.2.0-RC.99.
  • POM restored exactly, preserving ${revision} and only intended changes.
  • No commits or pushes.

Second Brain save was blocked by the vault being outside writable roots.

Low priority: this rides the repo's next RC.

🤖 Generated with Claude Code

The producer hardcoded its version, so released artifacts reported a stale literal or `-SNAPSHOT` as the qbit's metadata version. **Fix:** this follows the authentik pattern. A Maven-filtered `qbit-crm.properties` holds `version=${project.version}`, and the producer loads it. The tests assert that the producer version, the help bundle version and the artifact version are equal (surefire passes `qbit.artifactVersion`). **Codex notes:** Implemented in six files: `pom.xml`, `qbit-crm.properties`, `CrmQBitProducer.java`, both producer/help test files, and `CHANGELOG.md`. - `./mvnw.cmd -q verify` passed: 490 tests. - RC.99 proof passed: all 13 version-related tests at `0.2.0-RC.99`. - POM restored exactly, preserving `${revision}` and only intended changes. - No commits or pushes. Second Brain save was blocked by the vault being outside writable roots. Low priority: this rides the repo's next RC. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
Sign in to join this conversation.