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.
| Quarkus main, 25 November | with the branch | ||
|---|---|---|---|
Split packages outside integration tests |
25 |
→ |
20 |
Jars with a module descriptor |
10 |
→ |
13 |
The Redis client’s API |
inside the runtime jar |
→ |
its own jar, |
Code that names a moved class by its old name |
compiles and runs |
→ |
still compiles and runs |
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.
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.
How the pieces were connected. The edits made outside the engine are listed under "Method".
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 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 |
— |
two stale, byte-identical duplicates removed from the runtime module |
none |
|
2 |
— |
|
none |
|
3 |
2 classes into app-model, same package. 5 classes to |
old names keep working, except that a |
||
4 |
6 build steps to |
no users found |
||
5 |
4 deployment classes to |
old names of the mock servers keep working; no users found of the 4 deployment classes |
||
6 |
— |
the deprecated Kotlin duplicate of |
Kotlin code still importing it |
|
7 |
named module |
module-path name changes |
||
8 |
named modules |
no deep reflection on the module path |
||
9 |
199 API types into a new |
none for applications |
||
— |
|
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.
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.
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 |
|
no longer split |
#44712 bootstrap |
|
|
#44719 Amazon Lambda |
|
|
#44718 cache, closed September 2026 |
|
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.
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) |
|
a package rename on the test or example side |
covered by the open PR #57032 (3) |
|
that PR, open since September 2026 |
examined on this branch and left (3) |
|
|
|
two core classes with private constructors cannot be duplicated |
|
|
a Sisu component listed by name in an index file |
|
alternatives not used together (3) |
|
left as they are: the two extensions are not used together on one class path |
waiting on a maintainer’s decision (2) |
for #44743, a maintainer said resolving it breaks users |
| check | result |
|---|---|
|
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 |
|
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 |
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:
slf4j.jboss.logmanager), core/deployment on 29.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.
Choices made to get a working branch. Each could be decided differently and redone with the engine.
.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.since = "4.1", the next minor on main today.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.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.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 |
|
2 |
+0 −95 |
remove dead code: the 2 duplicate files |
none |
2 |
|
2 |
+0 −0 |
move to another module: 2 classes, renames only |
none |
3 |
|
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 |
|
6 |
+22 −8 |
replace an expression (2 edits); move 6 classes to another package (27 edits) |
none |
5 |
|
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); |
6 |
|
3 |
+2 −149 |
change an import (2 edits); remove dead code: the duplicate file |
formatter (2 files, one import line each) |
7 |
|
2 |
+18 −1 |
write a module descriptor |
the |
8 |
|
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 |
|
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.
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 |
|
|
Liquibase dev UI |
|
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 |
|
first replaces two reads of package-private fields with the public getters that already exist (2 edits), then moves the 6 build steps to |
bootstrap |
|
moves a class and writes a deprecated subclass at the old name that forwards every public method; 155 edits for the move to |
Redis client |
|
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 |
|
writes |
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);
}
…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
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 |
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 |
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 |
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 |
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.
Two findings from that run:
modularization/upstream-ready, with its commits against Quarkus main. One branch per area under modularization/. The fs-util commit: CodeLaser/quarkus-fs-util modularization/rozip-qualified-export.