Upgrade to Spring Boot 4.1.1 and Java 17, fix CI workflow - #8
Merged
Merged
Conversation
Upgrades the sample from Spring Boot 2.7.1 to 4.1.1 and repairs the JUnit workflow, which had been failing on master. - pom: parent 2.7.1 -> 4.1.1 (Java 17 baseline) - pom: r2dbc-postgresql groupId io.r2dbc -> org.postgresql (moved at 1.x) - pom: drop hardcoded h2 / r2dbc-h2 / r2dbc-postgresql versions so the Spring Boot BOM manages them (h2 now 2.4.240, superseding #4) - pom: drop junit-vintage-engine exclusion, no longer shipped - DemoApplication: ConnectionFactoryInitializer and ResourceDatabasePopulator moved to org.springframework.r2dbc.connection.init - TodoRepositoryTest: DatabaseClient moved to org.springframework.r2dbc.core, and execute() was renamed to sql() - workflow: bump checkout to v7.0.1 and setup-java to v6.0.0 (from #7), add the distribution input that setup-java v2+ requires, and move to Java 17 to match the pom. Without distribution the build fails with "distribution input is required". Verified: 5/5 tests pass, and the packaged jar was run against a real PostgreSQL 16 container (POST / -> 201, GET / -> 200, row persisted). Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: 1427cea2-8234-45b7-8b01-c6ad27a39450
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.
Upgrades the sample from Spring Boot 2.7.1 to 4.1.1 and repairs the JUnit workflow, which had been failing on master.
Verified: 5/5 tests pass, and the packaged jar was run against a real PostgreSQL 16 container (POST / -> 201, GET / -> 200, row persisted).
Purpose
Does this introduce a breaking change?
Pull Request Type
What kind of change does this Pull Request introduce?
How to Test
What to Check
Verify that the following are valid
Other Information