The latest versions of Eventuate Local and Eventuate Tram now support both Spring Boot and Micronaut. Adding support for Micronaut required changing the names of both Maven artifacts and packages. As a result, in order to upgrade to these versions, you must edit your source code.
replace_dependencies.py
is a python script that makes the necessary changes for you.
It edits the following files:
-
Maven
pom.xml
andbuild.gradle
- changes artifact names -
gradle.properties
- updates the artifact versions, assuming they use the same naming conventions as the Eventuate example applications -
*.java
- renames imported packages and classes
The script cannot replace the removed eventuate-jpa-sagas-framework
artifact.
Depending on the role the service plays in a saga, it should be replaced manually by one or both of the following:
-
eventuate-tram-sagas-<spring/micronaut>-orchestration
-
eventuate-tram-sagas-<spring/micronaut>-participant
If that dependency found during dependency replacements, the script prints a warning.
To update a Spring Boot-based application, perform the following steps:
-
git clone https://github.com/eventuate-tram/eventuate-upgrade-scripts.git
-
cd <root-directory-of-eventuate-based-project-to-update>
-
python <eventuate-upgrade-scripts>/replace_dependencies.py
replace_dependencies.py
can also update Eventuate/Micronaut applications by passing MICRONAUT option.
To update micronaut application step 3 should be changed to:
python <eventuate-upgrade-scripts>/replace_dependencies.py MICRONAUT