how to properly update spring version?

hi guys. i have java project and current spring version is 2.2.6. i need to update the version to the newest. as i understand its 3.3.3. so i have a couple of questions; 1. since i use gradle, i just need to change the version here?
plugins {
id 'org.springframework.boot' version '2.2.6.RELEASE'
id 'io.spring.dependency-management' version '1.0.9.RELEASE'
id 'java'
}
plugins {
id 'org.springframework.boot' version '2.2.6.RELEASE'
id 'io.spring.dependency-management' version '1.0.9.RELEASE'
id 'java'
}
2. is there smth to look out for when updating spring version in my project? thanks in advance
3 Replies
JavaBot
JavaBot3mo ago
This post has been reserved for your question.
Hey @bambyzas! Please use /close or the Close Post button above when your problem is solved. Please remember to follow the help guidelines. This post will be automatically closed after 300 minutes of inactivity.
TIP: Narrow down your issue to simple and precise questions to maximize the chance that others will reply in here.
Tomasm21
Tomasm213mo ago
To update the Spring Boot version in your Gradle project, you would change the version in the plugins section of your build.gradle file like this:
plugins {
id 'org.springframework.boot' version '3.3.3'
id 'io.spring.dependency-management' version '1.1.3'
id 'java'
}
plugins {
id 'org.springframework.boot' version '3.3.3'
id 'io.spring.dependency-management' version '1.1.3'
id 'java'
}
Spring Boot 3.x requires Java 17 or higher. Ensure your JAVA_HOME is set to Java 17 or later, and update your build.gradle file if necessary:
sourceCompatibility = '17'
targetCompatibility = '17'
sourceCompatibility = '17'
targetCompatibility = '17'
Make sure that the other dependencies in your project are compatible with Spring Boot 3.x, as there may have been breaking changes. Review third-party libraries to ensure they support this version. After updating, run a full build and test suite to catch any potential issues early.
JavaBot
JavaBot3mo ago
💤 Post marked as dormant
This post has been inactive for over 300 minutes, thus, it has been archived. If your question was not answered yet, feel free to re-open this post or create a new one. In case your post is not getting any attention, you can try to use /help ping. Warning: abusing this will result in moderative actions taken against you.
Want results from more Discord servers?
Add your server