Skip to content

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):

ComponentCoordinateVersionNotes
Quarkus platform BOMio.quarkus.platform:quarkus-bom4.0.1Java 21 minimum baseline
Quarkus Amazon Services BOMio.quarkus.platform:quarkus-amazon-services-bom4.0.1Aligned with quarkus-bom:4.0.1
Jackson 3 core / databind / YAMLtools.jackson.core:jackson-{core,databind}, jackson-dataformat-yaml3.1.8Replaces com.fasterxml.jackson.core databind/core; Jdk8Module and JavaTimeModule built in
Jackson annotationscom.fasterxml.jackson.core:jackson-annotations2.21Retains com.fasterxml.jackson.annotation.* package
CDI 5.0jakarta.cdi:jakarta.cdi-api5.0.0Relocated from jakarta.enterprise:jakarta.enterprise.cdi-api
Vert.x 5io.vertx:vertx-core5.2.3Callbacks removed (Future-only); ContextLocal SPI; native Vert.x gRPC stack; PgPool removed in favour of Pool / PgBuilder
Protobufcom.google.protobuf:protobuf-java, protobuf-java-util4.35.1Aligned in contracts and compiler
Hibernate ORM / Reactivehibernate-core, hibernate-reactive-core8.0.0.CR2 / 5.1.0.CR3Pre-Final CR artefacts in 4.0.1; track Final release in upcoming Quarkus 4.0.x patch
LangChain4j / Quarkus LangChain4jdev.langchain4j:langchain4j, io.quarkiverse.langchain4j:quarkus-langchain4j-*1.24.0 / 2.0.0Official Quarkus 4 / Jackson 3 release
MCP Java SDK Jackson 3io.modelcontextprotocol.sdk:mcp-json-jackson32.0.1Replaces mcp-json-jackson2 across mcp-connector, importer plugin, and QuickBooks host
Spring Boot (Foreign Host)org.springframework.boot:spring-boot-starter-webflux4.1.2Jackson 3 aligned; zero Quarkus/Vert.x/Mutiny/CDI leakage

Jackson 3 behavioural shifts pinned for ADR-0042 and HTTP boundaries ​

  1. DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES: Jackson 3 defaults to false (was true). PipelineJson explicitly enables FAIL_ON_UNKNOWN_PROPERTIES so unknown contract fields continue to fail with UnrecognizedPropertyException.
  2. MapperFeature.SORT_PROPERTIES_ALPHABETICALLY: Jackson 3 defaults to true (was false). PipelineJson, PipelineJavaDomainGenerator, ExternalStepHostContractRenderer, and PipelineIdlSnapshotWriter explicitly disable alphabetical sorting so emitted JSON preserves declaration order and retained fingerprints.
  3. DeserializationFeature.FAIL_ON_NULL_FOR_PRIMITIVES: Jackson 3 defaults to true (was false). PipelineJson disables it for historical JSON snapshots; hosted control-plane HTTP request DTOs (HostedExecutionSubmitRequest, HostedExecutionRedriveRequest, and HostedExecutionAdmissionResource.Request) accept boxed Boolean via @JsonCreator / record fields so callers omitting optional boolean flags continue to work under Quarkus REST's default strict JsonMapper.
  4. TreeBuildingGenerator.writeBinary (byte[] tree equality): Jackson 3.1.8 emits POJONode(byte[]) instead of BinaryNode during valueToTree, breaking JsonNode.equals(). PipelineJson registers ByteArrayTreeSafeSerializer to emit BinaryNode when writing into a TreeBuildingGenerator, preserving byte-array value equality across await and command codecs.
  5. Unchecked tools.jackson.core.JacksonException and strict JsonNode.asString(): Jackson 3 throws unchecked JacksonException instead of checked IOException, wraps low-level I/O failures in JacksonIOException (unwrapped in TransportBoundaryFailureClassifier before malformed-request classification), and JsonNode.asString() throws on container/missing nodes unless a default (asString("")) is supplied.
  6. Unified Quarkus 4 HTTP/gRPC server: Quarkus 4 removes separate gRPC server mode (quarkus.grpc.server.use-separate-server, quarkus.grpc.server.host, and quarkus.grpc.server.port are 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's TpfgoCheckpointFlowIT and start-stack.sh now bind each service's HTTP and gRPC traffic on one shared port.

Coordinated pull requests and verification record (codex/quarkus-4.0) ​

WaveRepositoryPR / StackBuild & Test Evidence
Wave 1pipelineframework-contractsPR #74Java 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 2pipelineframework-compilerPR #83Java 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 3pipelineframework-runtimeStack: 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 4pipelineframework-connectorsPR #66Java 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 4pipelineframework-blocksPR #26Java 21: all modules PASS — 36 Surefire tests (7 suites, 0 fail/err/skip)
Wave 4pipelineframework-cliPR #35OpenJDK 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 4pipelineframework-expansionsVerified (no diff)Java 21: install PASS against staged Waves 1–4 with zero source changes required
Wave 5pipelineframeworkPR #1142Java 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 6pipelineframework-examplesPR #75Java 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 7pipelineframework-reference-implementationsPR #28Java 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 7csv-kafka-paymentsPR #50Java 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 7rag-turnkeyPR #15Java 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:

ApplicationCache SizeBaseline Cold Start (4-run median)Leyden AOT Cold Start (4-run median)Speedup-Xlog:aot Verification
stdio-object-demo (Picocli CLI, --help)44 MB1,671.8 ms1,282.6 ms1.30× (-23.3%)Opened AOT cache app.aot., Using AOT-linked classes: true
restaurant-approval/monolith-svc (HTTPS TLS Registry + gRPC)44 MB1,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-preview for Java 21, OpenJDK 25 javac rejects --enable-preview combined 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 25 app.aot cache.

Verification obligations status ​

IDScopeStatusEvidence
VO-01ADR-0042 Jackson 3 golden wire compatibilityVerifiedPipelineJsonGoldenCompatibilityTest, PipelineJsonTest (ByteArrayTreeSafeSerializer), PayloadBoundaryContractJsonTest, CanonicalFieldJsonTest, polyglot-v0 (36 mutations), polyglot-policy-v1 (42 mutations)
VO-02Neutral contract modules ban Jackson 2 and Jackson 3VerifiedMaven Enforcer + RuntimeCoreDependencyGuardTest + RuntimeSpiDependencyGuardTest across all 10 contracts modules
VO-03Compiler codegen compiles cleanly with zero Jackson 2 databind/coreVerifiedpipelineframework-compiler PR #83: all tests green + dependency:tree zero Jackson 2 core/databind + major version: 65
VO-04Vert.x 5 ContextLocal & ADR-0048 native Vert.x gRPCVerifiedRuntimeAdapterBootstrap.VertxContextLocalProvider (META-INF/services/io.vertx.core.spi.VertxServiceProvider), RuntimeAdapterSeamTest, removed PipelineContextGrpcServerCustomizer, 3,248 runtime Surefire + 163 Failsafe ITs green
VO-05Hibernate ORM 8 / Hibernate Reactive 5 & ADR-0022 find.manyVerifiedJpaQueryConnectorQuarkusTest (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-06Slice 1A Opt-in Mutiny.StatelessSession persistence providerVerifiedADR-0095 (accepted); StatelessReactivePersistenceProvider & StatelessReactivePersistenceProviderTest in pipelineframework-runtime PR #156
VO-07Slice 1B Quarkus 4 Graceful Shutdown drainVerifiedPipelineShutdownCoordinator, PipelineShutdownListener (ShutdownListenerBuildItem), PipelineReadinessCheck DOWN/DRAINING, poller & admission drain tests (PipelineShutdownCoordinatorTest, PipelineShutdownLifecycleTest, PipelineReadinessCheckShutdownTest, KafkaAwaitCompletionConsumerTest), plus live packaged JVM drain observed in PackagedJobCallbackIT
VO-08OTel 10% default sampling awareness & recording independenceVerifiedDocumented quarkus.otel.traces.sampler=always_on in Tracing; TelemetryExportIndependenceTest updated for OTel SDK 1.67.0 hasNoSpanProcessor() short-circuit
VO-09Slice 1C Centralized Quarkus 4 TLS RegistryVerifiedAll 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-10Slice 1D Bounded JDK 25 Project Leyden aot-jar probeVerifiedstdio-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.

Diagram