Evidence
Contents
PDF

Working on Quarkus’s split packages and module names with the CodeLaser engine

The changes made to Quarkus with the CodeLaser engine, how they were checked, what the engine measured on the way, and the points left open. The CodeLaser engine is a deterministic refactoring engine built on a full model of the code. An agent drives it with instructions, under human oversight, and every step is guided by measurements of the codebase.

Issued
27 November 2026
Quarkus main
d60a029ffc6 (25 November 2026)
Upstream issues and ADR 0009 read on
27 November 2026
Contact
bart.naudts@codelaser.io

Summary

  • The goal. Two aims at once: to help with the work Quarkus has planned towards Java modules (JPMS), and to test the CodeLaser engine on a codebase of Quarkus’s size under Quarkus’s own compatibility rules.
  • The work. The engine was applied to the parts of Quarkus’s JPMS plan that live in Quarkus’s own code: the split packages of #44710 and the core module names of #51581. The changes follow ADR 0009 and the duplicate-and-deprecate rule agreed in #44710. Three of the sub-issues of #44710, open since November 2024, have commits on the branch: #44712 (bootstrap), #44719 (Amazon Lambda) and #44746 (undertow). The result is a branch with nine commits, one per area, built and tested on Quarkus main.
  • The time. The nine changes were made, compiled and tested on one day, 25 November 2026, starting from that morning’s Quarkus main. Fixes after a review followed on 26 and 27 November.
  • The scope. The branch keeps to Quarkus’s compatibility rules: a class that users name moves only with a deprecated class left at its old name. An earlier, wider run without those rules moved 257 of core/deployment’s 711 types into a new module in one engine operation, with 14,559 edits, and every module of Quarkus compiled against it. It is described in the addendum.
  • The engine. The CodeLaser engine loads all of Quarkus, 1.9 million lines of Java and Kotlin in 1,948 Maven modules, as one model of the code. It then makes structural changes across that whole model: it moves classes between packages and modules, leaves a deprecated class at the old name, writes module descriptors and carves new modules out of existing ones, updating every reference as it goes. Each change is tried as a dry run first, then compiled and tested.
Quarkus main, 25 November with the branch

Split packages outside integration tests
a jar that holds part of one cannot become a named module

25

→

20
18 once the 7 deprecated classes are removed; no new split package

Jars with a module descriptor
module-info.java, the file that makes a jar a named module

10

→

13
io.quarkus.core, io.quarkus.launcher, io.quarkus.bootstrap.app.model added

The Redis client’s API
199 public types

inside the runtime jar

→

its own jar, quarkus-redis-client-api
an ADR 0009 runtime-api module, packages kept

Code that names a moved class by its old name
checked in source and in binary against Quarkus 4.0.1; the exceptions are listed under "The branch"

compiles and runs

→

still compiles and runs
through 7 deprecated classes left at the old names

Checked on the branch: the full build, 3,359 tests of the touched modules with 0 failures, and the native Lambda build. No use was found in Quarkiverse, the community extensions, of any class that moved without a deprecated class at its old name.

Where this sits in Quarkus’s JPMS plan

The working-group proposal #53223 sets out Quarkus on JPMS with jlink images for Quarkus 4. It needs three things. Two of them are architecture work for Quarkus’s maintainers and for the libraries Quarkus uses. The third is mechanical work across Quarkus’s own repository. This report covers the third.

The sub-issues of #44710 have been open since November 2024. Each one asks for classes to be moved between packages or modules across a large codebase without breaking users.

Working-group proposal #53223 Quarkus on JPMS, with jlink images · target: Quarkus 4 A modular class loader One module-aware loader in place of today's 15–20 class loaders; a prototype exists. Quarkus architecture work Module names for libraries #51583: SmallRye, MicroProfile, Maven, JBoss and others; 32 of 42 items done. work across many projects Quarkus's own code #44710 split packages #51581 core module names ADR 0009 module structure what the engine worked on

The project setup

How the pieces were connected. The edits made outside the engine are listed under "Method".

Quarkus main, 25 November 1.9 million lines, 1,948 Maven modules parsed once, about 7 minutes The CodeLaser engine one model of every type and reference the operation is applied The source files, rewritten by an engine operation, on a step branch the model is updated from the new source Quarkus's Maven build, JDK 21 compile and tests of the touched modules The lead a CodeLaser engineer, who takes the decisions a maintainer would decisions Claude Code writes short scripts runs each as a dry run first checks what it would touch then runs it for real records every step and figure a script diffs, counts, warnings pass or fail, test counts
  • The Quarkus source. Quarkus main at d60a029ffc6, cloned onto a CodeLaser build machine. Each step was made on a branch of its own and merged once its checks passed. Nothing was written to Quarkus’s repository. The result is on CodeLaser’s fork, linked under "The branch".
  • The CodeLaser engine. Ran on the build machine, with all of Quarkus loaded, Java and Kotlin together.
  • Claude Code. Drove the engine through its tool interface. It wrote and ran the scripts that call the engine, checked each dry run before the write, and recorded every step with its commit and figures.
  • The lead. A CodeLaser engineer took every decision a Quarkus maintainer would normally take: the direction in which to resolve a split, package names, which change for users to accept, and each edit outside the engine. None of these decisions was taken by Quarkus.
  • Quarkus’s Maven build. Quarkus’s own, unchanged, on JDK 21. After each write the touched modules were compiled and their tests run. The final checks are under "How it was checked".

The branch

The branch is modularization/upstream-ready on CodeLaser’s fork of Quarkus. It holds nine commits stacked on Quarkus main of 25 November (the commits against main). The table below lists them in order, one row per commit. The last row is a tenth commit, on a branch of CodeLaser’s fork of quarkus-fs-util, which the app-model commit needs.

Each Quarkus commit is also on a branch of its own from the same starting point, so any one can be reviewed or cherry-picked alone. Each area name in the table links to that branch. File and line counts, with a link to each commit, are under "Method".

# area issue change for users

1

Liquibase dev UI

—

two stale, byte-identical duplicates removed from the runtime module

none

2

cache

—

CacheManagerInfo and CaffeineCache into cache/api, same package

none

3

bootstrap

#44712

2 classes into app-model, same package. 5 classes to …resolver.maven and …resolver.gradle, each with a deprecated class at the old name

old names keep working, except that a catch of the old exception name changes (see "Open points")

4

undertow

#44746

6 build steps to io.quarkus.undertow.deployment.impl. The SPI stays where it is, so Vaadin, which uses it, is not affected

no users found

5

Amazon Lambda

#44719

4 deployment classes to …lambda.deployment.impl. The HTTP and REST mock event servers to …runtime.events.http and .rest, deprecated at the old names. MockEventServer and QuarkusStreamHandler keep their names

old names of the mock servers keep working; no users found of the 4 deployment classes

6

Hibernate Reactive Panache (Kotlin)

—

the deprecated Kotlin duplicate of Panache removed

Kotlin code still importing it

7

app-model

#51581

named module io.quarkus.bootstrap.app.model, built against a qualified export in quarkus-fs-util

module-path name changes

8

core/runtime, launcher

#51581

named modules io.quarkus.core and io.quarkus.launcher, the names they already had

no deep reflection on the module path

9

Redis client

ADR 0009

199 API types into a new runtime-api module, artifact quarkus-redis-client-api, packages kept. The helper classes Validation and Marshaller from io.quarkus.redis.runtime.datasource to io.quarkus.redis.datasource.internal

none for applications

—

quarkus-fs-util

fs-util #86

exports io.quarkus.fs.util.rozip to io.quarkus.bootstrap.app.model

none; needs a release

The two patterns used throughout, following #44710: move classes that only Quarkus uses; duplicate and deprecate classes that users name. A deprecated class keeps the package split until Quarkus removes it.

Classes nobody uses: move them amazon-lambda/common-deployment io.quarkus.amazon.lambda .deployment 11 classes amazon-lambda/deployment io.quarkus.amazon.lambda .deployment 4 classes split: JPMS refuses two modules with the same package move 4 amazon-lambda/deployment io.quarkus.amazon.lambda .deployment.impl 4 classes one owner per package Classes users name: duplicate and deprecate resolver.BootstrapAppModelResolver old name, @Deprecated(forRemoval = true) extends resolver.maven.BootstrapAppModelResolver the class itself, in its module's own package

Split packages before and after

A package is split when its classes sit in more than one jar. The Java module system does not allow two modules to contain the same package, so a jar that holds part of a split package cannot become a named module until the split is resolved. #44710 tracks this work for Quarkus.

A split is resolved by moving classes until each package sits in one jar. Where users name a moved class, a deprecated class stays at the old name, which keeps the package split until Quarkus removes it. Hence three counts: on Quarkus main, on the branch, and once the deprecated classes are removed.

Integration-test applications never become modules, so packages split only between them are left out here. Counted with them, the figures are 80, 75 and 73; 55 of the 73 sit only between integration-test applications.

Split packages outside integration tests 25 on Quarkus main, 25 November Quarkus main 25 20 on the branch the branch 20 18 once the 7 deprecated classes are removed deprecations removed 18 Bars to scale from zero. Each of the 18 is listed below with what resolving it needs.

The upstream issues

The sub-issues of #44710 list their split packages by name. For the three with commits on the branch, and for one closed issue whose split had come back on main:

issue packages it lists with the branch

#44746 undertow

io.quarkus.undertow.deployment

no longer split

#44712 bootstrap

io.quarkus.bootstrap, io.quarkus.bootstrap.util, io.quarkus.bootstrap.resolver

.util and .resolver no longer split once the deprecated classes are removed. io.quarkus.bootstrap goes from 4 modules to 2; the two classes left cannot be duplicated

#44719 Amazon Lambda

…lambda.deployment, …lambda.runtime, …lambda.http, …lambda.http.deployment, …lambda.http.model

.deployment no longer split. .runtime goes from 5 modules to 3 once the deprecated classes are removed. The three .http packages are left: they sit in amazon-lambda-http and amazon-lambda-rest, alternatives that are not used together on one class path

#44718 cache, closed September 2026

io.quarkus.cache

split again on main of 25 November; no longer split

Two more splits ended on the branch are not tracked upstream: io.quarkus.liquibase.runtime.dev.ui, io.quarkus.hibernate.reactive.panache.

The 18 split packages left outside integration tests

Every one of them is accounted for, by what it would take to resolve it:

group packages what resolving them needs

split with a test application or an example (7)

io.quarkus, io.quarkus.grpc, io.quarkus.logging, io.quarkus.narayana.jta, io.quarkus.registry, io.quarkus.websockets, org.acme

a package rename on the test or example side

covered by the open PR #57032 (3)

io.quarkus.cli.plugin (#44721), io.quarkus.devtools.codestarts (#44716), io.quarkus.devtools.project.buildfile (#44723)

that PR, open since September 2026

examined on this branch and left (3)

io.quarkus.amazon.lambda.runtime

QuarkusStreamHandler is named in users' AWS configuration, and MockEventServer has public subclasses

io.quarkus.bootstrap

two core classes with private constructors cannot be duplicated

io.quarkus.bootstrap.resolver.maven

a Sisu component listed by name in an index file

alternatives not used together (3)

…lambda.http, …lambda.http.deployment, …lambda.http.model (#44719)

left as they are: the two extensions are not used together on one class path

waiting on a maintainer’s decision (2)

io.quarkus.maven (#44734), io.quarkus.test (#44743)

for #44743, a maintainer said resolving it breaks users

How it was checked

check result

./mvnw -Dquickly install from the root

passes

tests of the 25 touched modules, Redis against a real Redis server

3,359 run, 0 failures

the 10 Amazon Lambda integration tests

70 of 70

integration-tests/amazon-lambda -Dnative

passes

formatter and impsort on every commit

no file changed

old class names, in source: the Lambda module’s own tests from before the change, put back unchanged, and fluent calls through the old bootstrap resolver

compile and pass

old class names, in binary: code compiled against Quarkus 4.0.1 run on the new jars

runs

an independent rerun on a second machine, with containers for Redis and Panache

3,044 run, 0 failures

Quarkiverse searched for every moved class name

no use found of a class moved without a deprecated class at its old name

What the engine measured on the way

The engine also took a census of the whole repository: 23,625 types in 1,680 source sets, Java and Kotlin parsed together. The census was taken during the earlier run described in the addendum, on Quarkus main of 19 November. The branch starts from main of 25 November, where the split packages were counted again. Findings:

  • The core has no split packages. Core runtime, core deployment and ArC own all their packages.
  • Most split packages sit between integration tests. Of 79, 56 were between integration-test applications. 17 were between production jars, in bootstrap, devtools, the test framework and a few extensions.
  • 10 jars already declare a module, ArC’s runtime among them.
  • Third-party names are the larger cost. Production jars depend on 515 distinct libraries whose module names Java can only derive from the file name. core/runtime depends on one (slf4j.jboss.logmanager), core/deployment on 29.
  • core/deployment hits Maven 3. To become a named module it reads bootstrap’s Maven resolver, whose Maven 3 libraries split packages among themselves (for example org.apache.maven.model.merge in both maven-model and maven-model-builder).

Census of 19 November. On 25 November, with the Gradle plugin parsed too, the same three groups count 55, 7 and 18, 80 in all. The 25 split packages outside integration tests in this report are the last two groups.

The 79 split packages of the census, by what they sit between 56 only between integration-test applications 6 between a production jar and integration tests 17 between production jars 56 17 integration-test applications only 6 mixed between production jars

Open points

Choices made to get a working branch. Each could be decided differently and redone with the engine.

  • Package names for internals: .deployment.impl for build steps, and io.quarkus.redis.datasource.internal. This follows ADR 0009 and the suggestion in #44710, but the same thread also argues for staying with the existing conventions.
  • The deprecation version: since = "4.1", the next minor on main today.
  • One exception changes behaviour. BootstrapDependencyProcessingException moved with a deprecated subclass at the old name. A catch of the old name no longer catches what Quarkus throws. Keeping that class where it is costs no split package, because io.quarkus.bootstrap stays split for other reasons.
  • The Redis commit is large: 234 files, 201 of them plain renames. It could be split in two: the new runtime-api module, and the move of Validation and Marshaller to io.quarkus.redis.datasource.internal.
  • quarkus-fs-util needs a release with the qualified export. Until then app-model builds against a snapshot.

Method

The commits, with what changed in each, the engine operations that wrote it, and the edits made outside the engine. Each engine operation ran as a dry run first. Numbers in brackets are the edits an operation made to keep references correct.

# commit files lines engine write operations edits outside the engine

1

a862096da8c Liquibase dev UI

2

+0 −95

remove dead code: the 2 duplicate files

none

2

956ea82aeb2 cache

2

+0 −0

move to another module: 2 classes, renames only

none

3

9884a743480 bootstrap

43

+1,052 −868

move to another module ×2 (renames only); move leaving a deprecated class ×2 (155 and 7 edits)

formatter (16 files); 5 chained setters overridden in the deprecated resolver

4

ce8083bc6af undertow

6

+22 −8

replace an expression (2 edits); move 6 classes to another package (27 edits)

none

5

92f27b84a01 Amazon Lambda

13

+393 −354

move 4 classes to another package (48 edits); move leaving a deprecated class ×3 (47, 7 and 7 edits)

formatter (7 files); MockEventServer kept at its old name (9 files)

6

a6b9174935d Kotlin Panache

3

+2 −149

change an import (2 edits); remove dead code: the duplicate file

formatter (2 files, one import line each)

7

ba2e4fb755d app-model

2

+18 −1

write a module descriptor

the quarkus-fs-util version in the bootstrap pom (1 line)

8

aab8062b110 core/runtime, launcher

3

+85 −0

write a module descriptor ×2 (one engine run wrote the descriptors of commits 7 and 8)

test-only module flags in core/runtime’s pom; two pom comments reworded

9

77d04b3e960 Redis client

234

+138 −59

widen access on 5 members; move 2 classes to another package (131 edits); move 201 types to the new module (201 renames, 1 edit)

the new module’s pom, its aggregator entry and runtime’s dependency on it; the BOM entry; formatter (12 files)

total

308

+1,710 −1,534

12 edits, listed below

File and line counts are from git, per commit.

  • Every class move was made by an engine operation, with its references, imports and Javadoc links updated by the engine. Each operation ran as a dry run first, with checks on what it would touch, then for real, then through a compile and test gate of the touched modules.
  • Users were counted before each move: inside the repository by the engine, and in Quarkiverse by a scripted code search. A class with users got a deprecated class at its old name; a class without users moved outright.
  • 12 edits were made outside the engine, each logged with its reason: 4 formatter runs, 4 build-file edits (a BOM entry, the Redis module’s wiring, the fs-util version, test-only module flags for core/runtime), the fs-util export line, and 3 fixes after review.

Examples of engine operations from this branch

Each operation is one call with named arguments. A call that measures returns its answer; a call that changes code returns the diff it made. The cache commit, in full:

structure.moveTypesToSubProject(
    targetTypes = [CacheManagerInfo, CaffeineCache],
    targetModuleDirectory = "extensions/cache/api",
    targetBuildUnit = "io.quarkus:quarkus-cache-api")
→ 2 files renamed, 0 edits: same package, so no import changes
step operation what it did

find the splits, then choose which side moves

graph.splitPrice, then a count of outside users per class from the model

graph.splitPrice lists every split package; the count compares the two sides. For io.quarkus.cache, 7 outside uses against 57, so the side with 7 moved

Liquibase dev UI

remove.deadCodeExplicit

deletes the stale copy of two classes, named with their source set because a live copy with the same name exists; the dry run planned exactly the two deletions

undertow

replace.expression, then rename.bulkMoveType

first replaces two reads of package-private fields with the public getters that already exist (2 edits), then moves the 6 build steps to .deployment.impl (27 edits)

bootstrap

rename.moveTypeLeavingDeprecated

moves a class and writes a deprecated subclass at the old name that forwards every public method; 155 edits for the move to resolver.maven

Redis client

structure.optimizeAccess, then structure.moveTypesToSubProject

widens the 5 members the staying code calls, then moves 201 types into the new module: 201 renames, 1 edit (a Javadoc link to a class that stays behind)

module descriptors

structure.writeModuleInfo

writes module-info.java: requires from the module’s measured dependencies, provides from its META-INF/services files

What rename.moveTypeLeavingDeprecated left at the old name of DependencyUtils, first lines:

/**
 * @deprecated moved to {@link io.quarkus.bootstrap.resolver.maven.DependencyUtils}. This type remains so that code
 *             written against the old name keeps working; it will be removed.
 */
@Deprecated(forRemoval = true, since = "4.1")
public class DependencyUtils extends io.quarkus.bootstrap.resolver.maven.DependencyUtils {
    public static ArtifactKey getKey(Artifact artifact) {
        return io.quarkus.bootstrap.resolver.maven.DependencyUtils.getKey(artifact);
    }
    …

Remaining work in the same scope

  • Split packages between production jars (#44710): 18 remain outside integration tests, each listed above with what resolving it needs.
  • Module names (#51581): 13 jars declare a module after this branch, out of 1,025 build units in the census.
  • Extension structure (ADR 0009): moving extensions towards its module kinds, as done here for the Redis client.

The commits are on CodeLaser’s fork, where they can be read, built or cherry-picked. Quarkus’s AI_POLICY.md does not accept contributions opened by an agent. Any of these commits taken into Quarkus would be proposed by a person who has reviewed it and answers for it.

Addendum

An earlier, wider run

A first run (19–24 November) explored more freely, without holding to Quarkus’s compatibility rules. Much of it would break extensions as it stands, so it is not part of the branch. It is recorded here for the scale of change it made and checked.

what result why it was not carried forward

core/deployment’s model carved into a new core/deployment-spi module

257 of 711 types moved in one engine operation, 14,559 edits; every module of Quarkus compiled against it

it moves build items, which every extension uses; #43130 first wants public and private build items told apart

core/deployment’s build machinery carved into core/deployment-build

its package cycle went from 25 of 31 packages to 11 of 36

as above

vertx-http’s security layer and HTTP configuration carved into their own module

81 of 210 types; vertx-http’s runtime and deployment tests, 1,461 run, 0 failures

not an ADR 0009 module kind

Hibernate ORM’s service layer carved into runtime-core

46 of 120 types; Hibernate ORM’s runtime and deployment tests, 1,164 run, 0 failures

not an ADR 0009 module kind

Quarkus’s largest package cycle reduced

from 53 packages to 24; the io.quarkus.deployment cycle from 25 packages to 2

it moves build items and test classes between packages

Grey before, teal after; bars to scale. Packages are counted by name across the repository, test classes included. The remaining cycle of 24 is the Redis datasource API, whose command groups use each other by design.

Package cycles in the first run (packages in the largest cycle) largest in Quarkus 53 before 53 24 after 24 io.quarkus.deployment 25 before 25 2 after 2

Two findings from that run:

  • Most of core/deployment’s build steps are found only by annotation. 70 of its 78 build-step classes are referenced by no other main type. A tool that follows references alone would call them dead code.
  • ArC’s processor is one tight knot. 111 of its 162 types sit in type cycles, 93 of them in a single cycle. Splitting it would need design work, which no mechanical move can replace.

References