Feature Description
Upgrade the Kotlin extension to be compatible with Axon Framework 5.x (currently 5.0.3), targeting JVM 21.
A working implementation is provided in the linked PR.
Current Behaviour
The extension targets Axon Framework 4.12.0 and does not compile against AF5 due to breaking API changes:
AggregateLifecycle, CommandCallback, CommandResultMessage, ResponseTypes — removed
axon-configuration artifact — renamed to axon-messaging
AggregateTestFixture / SagaTestFixture — replaced by AxonTestFixture
Serializer interface — replaced by Converter
SingleEventUpcaster — absent from 5.0, scheduled for 5.2.0
Wanted Behaviour
The extension compiles and works against Axon Framework 5.x, with:
CommandGatewayExtensions: send, sendForResult, sendAndWait over CommandResult
QueryGatewayExtensions: query, queryMany, subscriptionQuery, streamingQuery
FixtureExtensions (kotlin-test): whenever, exception over the phase-based AxonTestPhase API
- Removed extensions that have no AF5 equivalent:
AggregateLifecycleExtensions, BuilderExtensions, ResultDiscriminatorCommandCallback, ArrayResponseType, EventUpcaster DSL, serialization/ module
- JVM target raised from 1.8 to 21
Possible Workarounds
None — the extension does not compile against AF5 without this migration.
Feature Description
Upgrade the Kotlin extension to be compatible with Axon Framework 5.x (currently 5.0.3), targeting JVM 21.
A working implementation is provided in the linked PR.
Current Behaviour
The extension targets Axon Framework 4.12.0 and does not compile against AF5 due to breaking API changes:
AggregateLifecycle,CommandCallback,CommandResultMessage,ResponseTypes— removedaxon-configurationartifact — renamed toaxon-messagingAggregateTestFixture/SagaTestFixture— replaced byAxonTestFixtureSerializerinterface — replaced byConverterSingleEventUpcaster— absent from 5.0, scheduled for 5.2.0Wanted Behaviour
The extension compiles and works against Axon Framework 5.x, with:
CommandGatewayExtensions:send,sendForResult,sendAndWaitoverCommandResultQueryGatewayExtensions:query,queryMany,subscriptionQuery,streamingQueryFixtureExtensions(kotlin-test):whenever,exceptionover the phase-basedAxonTestPhaseAPIAggregateLifecycleExtensions,BuilderExtensions,ResultDiscriminatorCommandCallback,ArrayResponseType,EventUpcasterDSL,serialization/modulePossible Workarounds
None — the extension does not compile against AF5 without this migration.