Quarkus 4.0 migration ​
This page records the coordinated cross-repository migration from Quarkus 3.39.2 to Quarkus 4.0.1 on shared compatibility-set branch codex/quarkus-4.0, keeping Java 21 (major version: 65) as the compilation baseline across TPF library, compiler, runtime, connector, Block, and example artefacts (while pipelineframework-cli continues to target Java 25) and delivering Phase 1 Quarkus 4 runtime upgrades.
Cross-repository cutover sequence ​
Verified quarkus-bom:4.0.1 dependency baseline ​
Resolved directly from Maven Central (io.quarkus.platform:quarkus-bom:4.0.1 and companion releases):
| Component | Coordinate | Version | Notes |
|---|---|---|---|
| Quarkus platform BOM | io.quarkus.platform:quarkus-bom | 4.0.1 | Java 21 minimum baseline |
| Quarkus Amazon Services BOM | io.quarkus.platform:quarkus-amazon-services-bom | 4.0.1 | Aligned with quarkus-bom:4.0.1 |
| Jackson 3 core / databind / YAML | tools.jackson.core:jackson-{core,databind}, jackson-dataformat-yaml | 3.1.8 | Replaces com.fasterxml.jackson.core databind/core; Jdk8Module and JavaTimeModule built in |
| Jackson annotations | com.fasterxml.jackson.core:jackson-annotations | 2.21 | Retains com.fasterxml.jackson.annotation.* package |
| CDI 5.0 | jakarta.cdi:jakarta.cdi-api | 5.0.0 | Relocated from jakarta.enterprise:jakarta.enterprise.cdi-api |
| Vert.x 5 | io.vertx:vertx-core | 5.2.3 | Callbacks removed (Future-only); ContextLocal SPI; native Vert.x gRPC stack; PgPool removed in favour of Pool / PgBuilder |
| Protobuf | com.google.protobuf:protobuf-java, protobuf-java-util | 4.35.1 | Aligned in contracts and compiler |
| Hibernate ORM / Reactive | hibernate-core, hibernate-reactive-core | 8.0.0.CR2 / 5.1.0.CR3 | Pre-Final CR artefacts in 4.0.1; track Final release in upcoming Quarkus 4.0.x patch |
| LangChain4j / Quarkus LangChain4j | dev.langchain4j:langchain4j, io.quarkiverse.langchain4j:quarkus-langchain4j-* | 1.24.0 / 2.0.0 | Official Quarkus 4 / Jackson 3 release |
| MCP Java SDK Jackson 3 | io.modelcontextprotocol.sdk:mcp-json-jackson3 | 2.0.1 | Replaces mcp-json-jackson2 across mcp-connector, importer plugin, and QuickBooks host |
| Spring Boot (Foreign Host) | org.springframework.boot:spring-boot-starter-webflux | 4.1.2 | Jackson 3 aligned; zero Quarkus/Vert.x/Mutiny/CDI leakage |
Jackson 3 behavioural shifts pinned for ADR-0042 and HTTP boundaries ​
DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES: Jackson 3 defaults tofalse(wastrue).PipelineJsonexplicitly enablesFAIL_ON_UNKNOWN_PROPERTIESso unknown contract fields continue to fail withUnrecognizedPropertyException.MapperFeature.SORT_PROPERTIES_ALPHABETICALLY: Jackson 3 defaults totrue(wasfalse).PipelineJson,PipelineJavaDomainGenerator,ExternalStepHostContractRenderer, andPipelineIdlSnapshotWriterexplicitly disable alphabetical sorting so emitted JSON preserves declaration order and retained fingerprints.DeserializationFeature.FAIL_ON_NULL_FOR_PRIMITIVES: Jackson 3 defaults totrue(wasfalse).PipelineJsondisables it for historical JSON snapshots; hosted control-plane HTTP request DTOs (HostedExecutionSubmitRequest,HostedExecutionRedriveRequest, andHostedExecutionAdmissionResource.Request) accept boxedBooleanvia@JsonCreator/ record fields so callers omitting optional boolean flags continue to work under Quarkus REST's default strictJsonMapper.TreeBuildingGenerator.writeBinary(byte[]tree equality): Jackson3.1.8emitsPOJONode(byte[])instead ofBinaryNodeduringvalueToTree, breakingJsonNode.equals().PipelineJsonregistersByteArrayTreeSafeSerializerto emitBinaryNodewhen writing into aTreeBuildingGenerator, preserving byte-array value equality across await and command codecs.- Unchecked
tools.jackson.core.JacksonExceptionand strictJsonNode.asString(): Jackson 3 throws uncheckedJacksonExceptioninstead of checkedIOException, wraps low-level I/O failures inJacksonIOException(unwrapped inTransportBoundaryFailureClassifierbefore malformed-request classification), andJsonNode.asString()throws on container/missing nodes unless a default (asString("")) is supplied. - Unified Quarkus 4 HTTP/gRPC server: Quarkus 4 removes separate gRPC server mode (
quarkus.grpc.server.use-separate-server,quarkus.grpc.server.host, andquarkus.grpc.server.portare unrecognized and ignored); gRPC endpoints always share the unified Vert.x HTTP server (quarkus.http.host,quarkus.http.port,quarkus.http.ssl-port). Multi-service launchers such as Checkout'sTpfgoCheckpointFlowITandstart-stack.shnow bind each service's HTTP and gRPC traffic on one shared port.
Coordinated pull requests and verification record (codex/quarkus-4.0) ​
| Wave | Repository | PR / Stack | Build & Test Evidence |
|---|---|---|---|
| Wave 1 | pipelineframework-contracts | PR #74 | Java 21: 10/10 modules install PASS; polyglot-v0 (254 Java / 247 Node / 247 Python / 36 mutation checks) & polyglot-policy-v1 (55×3 + 42 mutation checks) PASS; ByteArrayTreeSafeSerializer defensive clone + NON_EMPTY + polymorphic @JsonTypeInfo tests PASS; major version: 65 |
| Wave 2 | pipelineframework-compiler | PR #83 | Java 21 (merged with origin/main PHP 8.2+ target b7de642): install PASS (1,013 tests, 0 failures/errors); FAIL_ON_UNKNOWN_PROPERTIES preserved in generated GCP mappers; zero Jackson 2 core/databind; major version: 65 |
| Wave 3 | pipelineframework-runtime | Stack: PR #157 (85 files) → PR #158 (49 files) → PR #156 (52 files, codex/quarkus-4.0 head) | Java 21: all 16 modules PASS — 3,248 Surefire tests (475 suites, 0 fail/err, 3 skipped) + 163 Failsafe LocalStack ITs (23 suites) + all release-maven-plugin Invoker ITs on Quarkus 4.0.1 + 10/10 Node & Python publication contract tests; spring-host-starter clean on Spring Boot 4.1.2; major version: 65 |
| Wave 4 | pipelineframework-connectors | PR #66 | Java 21: all modules PASS — 419 Surefire tests (69 suites, including FAIL_ON_UNKNOWN_PROPERTIES decision projection test) + 11 Failsafe ITs (3 suites: HibernateReactiveQueryConnectorIT 9 tests on HR 5.1.0.CR3, PgVectorConnectorIT on Vert.x 5 Pool + pgvector PG17); mcp-connector verified on mcp-json-jackson3:2.0.1 with zero mcp-json-jackson2; major version: 65 |
| Wave 4 | pipelineframework-blocks | PR #26 | Java 21: all modules PASS — 36 Surefire tests (7 suites, 0 fail/err/skip) |
| Wave 4 | pipelineframework-cli | PR #35 | OpenJDK 25: all 6 modules + shaded JAR & distribution .zip/.tar.gz PASS — 62 Surefire tests (13 suites, 0 fail/err/skip), including NativeReachabilityMetadataTest updated for Jackson 3 |
| Wave 4 | pipelineframework-expansions | Verified (no diff) | Java 21: install PASS against staged Waves 1–4 with zero source changes required |
| Wave 5 | pipelineframework | PR #1142 | Java 21: pipelineframework-bom + transport-completeness-tests (14 tests, 4 suites, 0 fail/err) PASS; ADR-0095 promoted to accepted; VitePress npm test (42/42) & npm run build PASS |
| Wave 6 | pipelineframework-examples | PR #75 | Java 21: all example & proof modules PASS — 113 Surefire tests (44 suites, 1 skipped) + 38 Failsafe ITs (19 suites) + 10/10 restaurant-approval/self-host Python tests; TLS Registry (VO-09) verified across all 5 Restaurant Approval services with expiry/fingerprint-validated cert generation; Project Leyden AOT (VO-10) verified on OpenJDK 25.0.4.1 |
| Wave 7 | pipelineframework-reference-implementations | PR #28 | Java 21: full verify PASS across Checkout, Search, and QuickBooks — 171 Surefire tests (45 suites, 0 fail/err, 1 skipped) + 37 Failsafe ITs (11 suites, 0 fail/err/skip, including all 4 TpfgoCheckpointFlowIT 9-service E2E tests on unified HTTP/gRPC ports, SearchPipelineEndToEndIT, SearchReplayEndToEndIT, and QuickBooks); spotless:check PASS |
| Wave 7 | csv-kafka-payments | PR #50 | Java 21: full smoke suite PASS — all 8 core modules (install) + self-host/pilot/build-and-prove.sh (ingress-lambda-svc, worker-lambda-svc, provider-lambda-svc, LocalStack S3/DynamoDB/SQS run-local-proof.py --execute-workers --probe-part-limit, and durable-action-lambda-svc; 68 Surefire tests, 13 suites, 0 fail/err, 1 skipped) |
| Wave 7 | rag-turnkey | PR #15 | Java 21: full verify PASS across all 4 modules (support, indexer, query including LangChain4jAugmentationTest, system-test) with zero Java source changes required |
Slice 1D (VO-10) Project Leyden AOT benchmark results ​
Executed without Maven profiles on OpenJDK 25.0.4.1 over Java 21 compiled bytecode (javap -v confirmed major version: 65, minor version: 0 on both apps) using -Dquarkus.package.jar.aot.enabled=true -Dquarkus.package.jar.aot.type=aot -Dquarkus.package.jar.aot.phase=build and booted with -XX:AOTMode=on -XX:AOTCache=app.aot:
| Application | Cache Size | Baseline Cold Start (4-run median) | Leyden AOT Cold Start (4-run median) | Speedup | -Xlog:aot Verification |
|---|---|---|---|---|---|
stdio-object-demo (Picocli CLI, --help) | 44 MB | 1,671.8 ms | 1,282.6 ms | 1.30× (-23.3%) | Opened AOT cache app.aot., Using AOT-linked classes: true |
restaurant-approval/monolith-svc (HTTPS TLS Registry + gRPC) | 44 MB | 1,424.0 ms Quarkus (1,529.7 ms wall) | 1,000.0 ms Quarkus (1,082.1 ms wall) | 1.42× (-29.8% Quarkus / -29.3% wall) | Opened AOT cache app.aot., Using AOT-linked classes: true |
Build-toolchain note: When an application POM configures
--enable-previewfor Java 21, OpenJDK 25javacrejects--enable-previewcombined with--release 21. Compiling with Java 21 (process-classes) followed by OpenJDK 25 AOT packaging (package -Dmaven.main.skip=true -Dmaven.test.skip=true -Dquarkus.package.jar.aot.enabled=true -Dquarkus.package.jar.aot.type=aot -Dquarkus.package.jar.aot.phase=build) preserves genuine Java 21 bytecode (major version: 65) while producing a valid OpenJDK 25app.aotcache.
Verification obligations status ​
| ID | Scope | Status | Evidence |
|---|---|---|---|
| VO-01 | ADR-0042 Jackson 3 golden wire compatibility | Verified | PipelineJsonGoldenCompatibilityTest, PipelineJsonTest (ByteArrayTreeSafeSerializer), PayloadBoundaryContractJsonTest, CanonicalFieldJsonTest, polyglot-v0 (36 mutations), polyglot-policy-v1 (42 mutations) |
| VO-02 | Neutral contract modules ban Jackson 2 and Jackson 3 | Verified | Maven Enforcer + RuntimeCoreDependencyGuardTest + RuntimeSpiDependencyGuardTest across all 10 contracts modules |
| VO-03 | Compiler codegen compiles cleanly with zero Jackson 2 databind/core | Verified | pipelineframework-compiler PR #83: all tests green + dependency:tree zero Jackson 2 core/databind + major version: 65 |
| VO-04 | Vert.x 5 ContextLocal & ADR-0048 native Vert.x gRPC | Verified | RuntimeAdapterBootstrap.VertxContextLocalProvider (META-INF/services/io.vertx.core.spi.VertxServiceProvider), RuntimeAdapterSeamTest, removed PipelineContextGrpcServerCustomizer, 3,248 runtime Surefire + 163 Failsafe ITs green |
| VO-05 | Hibernate ORM 8 / Hibernate Reactive 5 & ADR-0022 find.many | Verified | JpaQueryConnectorQuarkusTest (6 tests on Hibernate ORM 8.0.0.CR2) + HibernateReactiveQueryConnectorIT (9 tests on Hibernate Reactive 5.1.0.CR3 + PostgreSQL Testcontainer) in pipelineframework-connectors PR #66 |
| VO-06 | Slice 1A Opt-in Mutiny.StatelessSession persistence provider | Verified | ADR-0095 (accepted); StatelessReactivePersistenceProvider & StatelessReactivePersistenceProviderTest in pipelineframework-runtime PR #156 |
| VO-07 | Slice 1B Quarkus 4 Graceful Shutdown drain | Verified | PipelineShutdownCoordinator, PipelineShutdownListener (ShutdownListenerBuildItem), PipelineReadinessCheck DOWN/DRAINING, poller & admission drain tests (PipelineShutdownCoordinatorTest, PipelineShutdownLifecycleTest, PipelineReadinessCheckShutdownTest, KafkaAwaitCompletionConsumerTest), plus live packaged JVM drain observed in PackagedJobCallbackIT |
| VO-08 | OTel 10% default sampling awareness & recording independence | Verified | Documented quarkus.otel.traces.sampler=always_on in Tracing; TelemetryExportIndependenceTest updated for OTel SDK 1.67.0 hasNoSpanProcessor() short-circuit |
| VO-09 | Slice 1C Centralized Quarkus 4 TLS Registry | Verified | All 5 restaurant-approval services migrated to quarkus.http.tls-configuration-name=pipeline-server + quarkus.tls.pipeline-server.* + reload-period (zero legacy quarkus.http.ssl.certificate.*); live HTTPS boot verified in monolith-svc and all Restaurant Approval tests + 10/10 self-host Python tests pass |
| VO-10 | Slice 1D Bounded JDK 25 Project Leyden aot-jar probe | Verified | stdio-object-demo (1.30×, -23.3%) and restaurant-approval/monolith-svc (1.42×, -29.8% Quarkus / -29.3% wall) with Opened AOT cache app.aot. & major version: 65 |
Compatibility-set readiness ​
All 11 participating TPF component, example, reference-implementation, and application repositories are open on the shared compatibility-set branch codex/quarkus-4.0 (with pipelineframework-runtime stacked as #157 → #158 → #156 so every PR stays below 100 files while keeping #156 as the unique codex/quarkus-4.0 compatibility-set head). Merge order follows the dependency graph once the cross-repository tpf/system-tests compatibility set passes.