Automating editing with replace_dependencies.py
replace_dependencies.py is a python script that makes the necessary changes for you.
It edits the following files:
build.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
What it doesn’t handle:
The script cannot replace the removed
Depending on the role the service plays in a saga, it should be replaced manually by one or both of the following:
If that dependency found during dependency replacements, the script prints a warning.
How to use
To update a Spring Boot-based application, perform the following steps:
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