Getting started Community Training Tutorials Documentation APIs, AI & Tools
1.x
Upgrade Java Module to version 2.x.
Java Module 2.0 includes these changes.
Java Module (and its dependencies) are now compilable and compatible only with Java 17.
To align with modern development practices and ensure continued compatibility with secure and supported libraries, Java Module is upgraded from Spring 5.x to Spring 6.x.
Before you perform the upgrade, you must create a backup of your files, data, and configurations in case you need to restore them.
Follow these steps to perform the upgrade:
In Anypoint Studio, right-click the project and select Manage Dependencies > Manage Modules.
Select Java Module - Mule 4 and click Update version.
Click Apply and Close.
Verify that the Java Module dependency version is 2.x in the pom.xml file in the Mule project.
Alternatively, you can manually update the Java Module dependency version in the pom.xml file in the Mule project, or simply add the updated module to the project.