Skip to main content

Gitea Actions CI for Spring Boot: Build, Test, SBOM and Image Push

A Gitea Actions pipeline for a Spring Boot 4.2 service, with every command actually run: surefire/failsafe split, Testcontainers, Maven cache numbers, a CycloneDX SBOM that really ships in the jar, a Jib image push, and the 404 you get when Gitea lives under a URL sub-path. Includes what was not proven: the YAML was never run by a runner.

Text Classification in Java Without an LLM: Tribuo vs Smile vs a Zero-Shot LLM

Train a support-ticket classifier in plain Java with Tribuo 4.3.2 and Smile 7.3.0, compare accuracy, macro-F1, latency and model size, then break it on purpose: skewed classes, duplicate tickets, new wording and a ticket of unseen words that three libraries answer three different ways. Includes a zero-shot LLM client tested against a fake endpoint and a cost formula with assumed prices. No LLM accuracy is claimed because none was measured.

Jib for Spring Boot: Container Images Without a Dockerfile (vs Buildpacks)

Build one Spring Boot 4.2 app into a container image with Jib 3.5.2 and with Cloud Native Buildpacks, then break both. Real transcripts: five thin layers, a 1.4 KB rebuild delta, identical digests, daemonless registry push, the wrong-JRE trap, and the Buildpacks image that refuses to start at 512 MB.

Hibernate 8 Safe Mode for HQL and Row-Level Security Multi-Tenancy on PostgreSQL (8.0.0.CR2)

Hibernate ORM 8.0.0.CR2 (release candidate) adds hibernate.query.safe_mode_enabled, which rejects HQL calls to unregistered database functions, and generates a PostgreSQL row-level-security policy for @TenantId tables. Both run against a real PostgreSQL 16 with captured output: what each blocks, what a superuser bypasses, how a set_config() call moves the tenant, and the tenant parameter in @SQLUpdate and @SQLDelete.