-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[MODEBSNET-51] - Update to Java 17./Update the module to Spring boot v3.0.0 and identify issues. #69
Conversation
I suppose this PR should be taken into account https://github.com/folio-org/folio-spring-base/pull/77/files |
I have fixed issue next commit Update the module to Spring boot v3.0.0 and identify issues. |
I am facing this issue after upgrading spring boot 3.0.0, I cannot find the solution
|
@@ -13,7 +13,7 @@ buildMvn { | |||
buildDocker { | |||
publishMaster = 'yes' | |||
healthChk = 'no' | |||
healthChkCmd = 'curl -sS --fail -o /dev/null http://localhost:8081/apidocs/ || exit 1' | |||
healthChkCmd = 'wget --no-verbose --tries=1 --spider http://localhost:8081/admin/health || exit 1' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is changing "apidocs/" to "admin/health" intended?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fisrt I little bit confuse, then I saw there in this https://issues.folio.org/browse/FOLIO-3407 place and I also changed it
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please make sure this url is available in the module (looks like you won't see the error during build anyway since healthcheck is disabled: healthChk = 'no')
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@grabsefx Big Thanks for helping. it solves the issue |
import org.hamcrest.DiagnosingMatcher; | ||
import org.skyscreamer.jsonassert.JSONCompare; | ||
import org.skyscreamer.jsonassert.JSONCompareMode; | ||
import org.skyscreamer.jsonassert.JSONCompareResult; | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These are not used so deleted
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In case it wasn't affected by dependenies update, such changes should be done in separate commits
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok, Fixed
import org.springframework.test.context.TestPropertySource; | ||
import org.springframework.transaction.annotation.EnableTransactionManagement; | ||
import org.springframework.util.SocketUtils; | ||
import org.springframework.test.util.TestSocketUtils; | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In spring boot, LocalServerPort changed to test package
SocketUtils is replaced with TestSocketUtils
spring-projects/spring-framework#28210
pom.xml
Outdated
<springdoc-openapi-ui.version>1.6.14</springdoc-openapi-ui.version> | ||
<jackson-databind-nullable.version>0.2.4</jackson-databind-nullable.version> | ||
<!-- Plugin properties --> | ||
<spring-boot-maven-plugin.version>2.7.3</spring-boot-maven-plugin.version> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
shouldn't it be updated to third?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updated
… issues removed unessary dependency
… issues removed unessary dependency version
Kudos, SonarCloud Quality Gate passed! |
Purpose
https://issues.folio.org/browse/MODEBSNET-52
https://issues.folio.org/browse/MODEBSNET-51
Approach
TODOS and Open Questions
Learning
Pre-Merge Checklist:
Before merging this PR, please go through the following list and take appropriate action.
If there are breaking changes, please STOP and consider the following:
Ideally, all the PRs involved in breaking changes would be merged on the same day
to avoid breaking the folio-testing environment.
Communication is paramount if that is to be achieved,
especially as the number of inter-module and inter-team dependencies increase.
While it's helpful for reviewers to help identify potential problems,
ensuring that it's safe to merge is ultimately the responsibility of the PR assignee.