Repository navigation
shipping: upgrade to Java 21 and Spring Boot 3.5 - #5
Open
devin-ai-integration[bot] wants to merge 1 commit into
Open
devin-ai-integration[bot] wants to merge 1 commit into
devin-ai-integration[bot] wants to merge 1 commit into
Conversation
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Author
🤖 Devin AI EngineerI'll be helping with this pull request! Here's what you should know: ✅ I will automatically:
Note: I can only respond to comments from users who have write access to this repository. ⚙️ Control Options:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Second module through the recipe proven on
trackin #1:shippingmoves from Java 8 / Spring Boot 2.7.4 / Spring 5.3.18 to Java 21 + Spring Boot 3.5.16. Hand-written application code (ShippingDemo,ShipApi,Util,AppConfig) is unchanged; the change ispom.xmlplus test hardening. Stacked on #4 (CI workflow) so thebuild (shipping)check on this PR shows the loop closing green.Before / after
mvn clean packageon JDK 21NoSuchFieldError: JCTree$JCImport ... qualid— Lombok 1.18.24 vs JDK 21 javac)javax.annotation.*jakarta.annotation.*(271@jakarta.annotation.Generated, 0javax.annotation)pom.xml — identical recipe to #1: parent 2.7.4 → 3.5.16,
maven.compiler.source/target=1.8→<java.version>21</java.version>; dropped every hand-pinned Boot-managed version and the per-plugin<dependencies>CVE-pin blocks; removedjunit:junit4 andjackson-jaxrs-json-provider;openapi-generator-maven-plugin6.2.0 → 7.25.0 with<configOptions><useJakartaEe>true</useJakartaEe></configOptions>on both the OAuth and Shipping code-gen executions;jackson-databind-nullable0.2.3 → 0.2.11.Tests
ShippingApplicationTests(10 live calls against UPS CIE) gated with@EnabledIfEnvironmentVariable(named = "UPS_CIE_TESTS", matches = "true"); itsorg.junit.Assertimports moved toorg.junit.jupiter.api.Assertionssince JUnit 4 is gone.ShippingOfflineTest(plain JUnit 5, no Spring context so theCommandLineRunnernever fires): bindsMockRestServiceServerto aRestTemplate, thennew ShippingDemo(restTemplate, appConfig).getShipApi(...)→ assertsPOST /security/v1/oauth/token→Bearer test-tokenonPOST /api/shipments/v1/ship→ response parsed throughUtil.jsonResultPreprocess(PackageResults object→array) into the regeneratedSHIPResponseWrapper.SHIPRequestWrapperrather than loadingShipmentRequest.json: that fixture uses"AddressLine": "..."strings while the OpenAPI spec (and both the 6.2.0 and 7.25.0 generated models) declareAddressLineasList<String>. Verified pre-existing onmain— not introduced here — and left for a follow-up.Verification (JDK 21, Maven 3.9.11):
cd shipping && mvn clean package→Tests run: 11, Failures: 0, Errors: 0, Skipped: 10, BUILD SUCCESS.Link to Devin session: https://app.devin.ai/sessions/521876ab29a141689f30f94bc447ace7
Open in Devin Desktop: https://app.devin.ai/desktop/session/521876ab29a141689f30f94bc447ace7?variant=devin
Requested by: @matth4922-droid