Content
Steps followed when upgrading dataframe plugin from grails version-3.3.0 to version-6.1.2.
First we need to download all the required things and put them in environment variable .
- JDK - 17 (download from: https://download.oracle.com/java/17/latest/jdk-17_windows-x64_bin.exe ( sha256))
- Grails-6.1.2 (download from: https://grails.org/download.html )
- Gradle-8.6 (optional) Most of the cases, ide automatically detect gradle sdk from Grails project but if it is unable to do that, we can download from https://gradle.org/releases/))
To put above things in Environment variables,
- Search "Environment Variables" in your device.
- Click on "Edit the system environment variables".
- Then go to "Environment variables". Then in System variables, select "Path".
- Click "New" in right side and "Browse" your installation path (till bin) and click Apply.
- Note: You need to do one by one for JDK-17, Grails-6.1.2, and Gradle-8.6. To make sure you added them properly, You can check their command working or not in Command prompt. For eg: java --version (for jdk), grails --version(for grails) etc.
After setting up above things, we have to now open our project in our IDE (I am using Intellij IDE, so i am keeping steps to follow in Intellij while making upgrade)
- First of all you need to go to File -> Project Structure -> Project Settings -> Project, then in SDK dropdown, please select JDK-17 from your machine
- Then go to File -> Project Structure -> Platform Settings -> SDKs -> then add JDK-17 with correct JDK home path.
- Now go to File -> Settings -> Build, Execution, Deployment -> Build Tools -> Gradle -> Gradle JVM(in the right side), then select JDK-17 and click Apply.
Now, you are all set to run the project in grails-6.1.2. Before that build your project with gradle build. Make sure, you clone fresh updated code from your repository. You need to make sure there is correct configuration of grails version and dependencies in some files like gradle-wrapper.properties, gradle.properties, build.gradle etc.