Point Axon Framework 4 dependencies at artifacts Axon Framework 5 publishes

Proprietary

AxonIQ's recipes move every org.axonframework dependency to the Axon Framework 5 version, including artifacts that Axon Framework 5 no longer publishes, so the build cannot resolve them. axon-configuration merged into the core modules and the axon aggregate artifact is gone, so both become axon-eventsourcing 5, which brings the modelling, messaging and common modules. AxonIQ's recipes leave such an artifact on its Axon Framework 4 version, where Maven would resolve the Axon Framework 4 messaging module through it. OpenTelemetry tracing is no longer part of Axon Framework, so its dependency is removed where no code uses it. The reactor extension, which the Axon Framework 4 BOM managed, gets a version. Gradle builds move to a Gradle 8 release that runs the Java 21 toolchain Axon Framework 5 needs. The Spring Boot upgrade in AxonIQ's recipes can set the spring-data-bom.version property of Spring's dependency management plugin to a Spring Data artifact version, such as 3.0.12, where it takes a release train, such as 2022.0.12, so that nothing resolves. Such a setting is removed, which leaves Spring Data at the version Spring Boot manages. It can likewise set junit-jupiter.version to the JUnit Platform version, such as 1.14.4, which becomes the Jupiter version that goes with it, 5.14.4. The JUnit 5 migration in it adds junit-platform-launcher at the newest 1.x version, where Spring's dependency management plugin holds the rest of the JUnit Platform at the version Spring Boot manages, and a launcher newer than the engine fails every test run with NoClassDefFoundError: OutputDirectoryCreator. The launcher's version is removed where that plugin manages it. Spring Boot 3.5 manages Jackson 2.21, older than the Jackson Axon Framework 5 needs, so it is raised to the version Axon Framework 5 declares.

io.moderne.axon.FixAxon5Dependencies
mod run . --recipe=io.moderne.axon.FixAxon5Dependencies

Install it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.