Skip to content

Migrate Kotlin extension to Axon Framework 5 #393

@vcanuel

Description

@vcanuel

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.

Metadata

Metadata

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions