rupeesense/fiu-application

sweep: upgrade spring boot to 3.0.4 and migrate to java 17

avirlrma opened this issue ยท 1 comments

sweep: upgrade spring boot to 3.0.4 and migrate to java 17

Here's the PR! #17.

โšก Sweep Free Trial: I used GPT-4 to create this ticket. You have 3 GPT-4 tickets left for the month and 2 for the day. For more GPT-4 tickets, visit our payment portal.To get Sweep to recreate this ticket, leave a comment prefixed with "sweep:" or edit the issue.


Step 1: ๐Ÿ” Code Search

I found the following snippets in your repository. I will now analyze these snippets and come up with a plan.

Some code snippets I looked at (click to expand). If some file is missing from here, you can mention the path in the ticket description.

https://github.com/RupeeSense/fiu-application/blob/713e3bf9141022da275a9472dcbc1efff02e1b66/pom.xml#L1-L99

https://github.com/RupeeSense/fiu-application/blob/713e3bf9141022da275a9472dcbc1efff02e1b66/fiu-core/pom.xml#L1-L57

https://github.com/RupeeSense/fiu-application/blob/713e3bf9141022da275a9472dcbc1efff02e1b66/fiu-core/src/main/java/com/rupeesense/fi/fiu/FIUService.java#L1-L95

https://github.com/RupeeSense/fiu-application/blob/713e3bf9141022da275a9472dcbc1efff02e1b66/fiu-api/pom.xml#L1-L59

https://github.com/RupeeSense/fiu-application/blob/713e3bf9141022da275a9472dcbc1efff02e1b66/fiu-api/src/test/java/com/rupeesense/fi/controllers/AAOrchestrationControllerTest.java#L1-L42


Step 2: ๐Ÿง Snippet Analysis

From looking through the relevant snippets, I decided to make the following modifications:

File Path Proposed Changes
pom.xml Update the Spring Boot version in the parent section to 3.0.4. Also, update the Java version in the properties section to 17.
fiu-api/pom.xml Update the Spring Boot version in the parent section to 3.0.4. Also, update the Java version in the properties section to 17.
fiu-core/pom.xml Update the Spring Boot version in the parent section to 3.0.4. Also, update the Java version in the properties section to 17.

Step 3: ๐Ÿ“ Planning

I have created a plan for writing the pull request. I am now working my plan and coding the required changes to address this issue. Here is the planned pull request:

Upgrade Spring Boot to 3.0.4 and migrate to Java 17
sweep/upgrade-spring-boot-java-17

Description

This PR upgrades the Spring Boot version to 3.0.4 and migrates the project to Java 17. The following changes were made:

  • Updated the Spring Boot version in the root pom.xml and in the pom.xml files of the modules (fiu-api and fiu-core) to 3.0.4.
  • Updated the Java version in the properties section of the pom.xml files to 17.

Summary of Changes

  • Updated Spring Boot version to 3.0.4 in the parent pom.xml and module pom.xml files.
  • Updated Java version to 17 in the properties section of the pom.xml files.

Please review and merge this PR to complete the upgrade and migration process.


Step 4: โŒจ๏ธ Coding

File Instructions Progress
pom.xml Update the Spring Boot version in the parent section to 3.0.4. Also, update the Java version in the properties section to 17. โœ… Commit 6e27535
fiu-api/pom.xml Update the Spring Boot version in the parent section to 3.0.4. Also, update the Java version in the properties section to 17. โœ… Commit 335a087
fiu-core/pom.xml Update the Spring Boot version in the parent section to 3.0.4. Also, update the Java version in the properties section to 17. โœ… Commit e7a910f

Step 5: ๐Ÿ” Code Review

Here are the my self-reviews of my changes at sweep/upgrade-spring-boot-java-17.

Here is the 1st review

Hello, good job on updating the versions in the pom.xml files. However, there are a few things that need to be addressed:

  • In both fiu-api/pom.xml and fiu-core/pom.xml, you've changed the project version from a variable to a hardcoded value. This could potentially cause issues in the future if the project version needs to be updated, as it would require manual changes in multiple places instead of just updating the variable. I would recommend reverting this change and keeping the project version as a variable.

  • You've updated the maven compiler source and target versions in fiu-api/pom.xml and fiu-core/pom.xml, and the java version in pom.xml. This could potentially cause issues if there are parts of the code that are not compatible with the newer versions. Please ensure that all parts of the code are compatible with these versions before making these changes.

  • Lastly, it's generally good practice to end files with a newline. The newline at the end of fiu-core/pom.xml and pom.xml has been removed. Please add it back.

Please make these changes and update the pull request. If you have any questions, feel free to ask.

I finished incorporating these changes.


To recreate the pull request, leave a comment prefixed with "sweep:" or edit the issue.
Join Our Discord