-
Notifications
You must be signed in to change notification settings - Fork 1
feature: Maven build to Spring Boot 3.3.13 / Java 17 #64
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
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -11,15 +11,10 @@ | |
| <parent> | ||
| <groupId>org.springframework.boot</groupId> | ||
| <artifactId>spring-boot-starter-parent</artifactId> | ||
| <version>2.0.2.RELEASE</version> | ||
| <version>3.3.13</version> | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🔍 Packaging is The project declares Was this helpful? React with 👍 or 👎 to provide feedback. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Correct and pre-existing — |
||
| </parent> | ||
|
|
||
| <dependencies> | ||
| <dependency> | ||
| <groupId>org.springframework.boot</groupId> | ||
| <artifactId>spring-boot-properties-migrator</artifactId> | ||
| <scope>runtime</scope> | ||
| </dependency> | ||
| <dependency> | ||
| <groupId>org.springframework.boot</groupId> | ||
| <artifactId>spring-boot-starter-web</artifactId> | ||
|
|
@@ -35,7 +30,7 @@ | |
| </dependencies> | ||
|
|
||
| <properties> | ||
| <java.version>1.8</java.version> | ||
| <java.version>17</java.version> | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🔍 Gradle build left on Spring Boot 2.0.2 / Java 8
Was this helpful? React with 👍 or 👎 to provide feedback. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Intentional: |
||
| </properties> | ||
|
|
||
|
|
||
|
|
||
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.
🔴 Application startup fails because the built-in database no longer understands the app's table setup commands
Upgrading the framework parent (
spring-boot-starter-parent3.3.13 atpom.xml:14) pulls in a major new version of the embedded database whose stricter SQL rules reject the table-creation statements the app runs on every startup, so the app crashes on boot.Impact: Running the packaged application aborts during startup with a SQL syntax error instead of serving requests.
Managed H2 version jumps from 1.4.x to 2.x, breaking legacy DDL in Application.run
Spring Boot 3.3.x manages
com.h2database:h2at 2.2.x, while Boot 2.0.2 managed 1.4.x.hello/Application.java:65-66executes:DROP TABLE customers IF EXISTS— the trailingIF EXISTSform was removed in H2 2.x (onlyDROP TABLE IF EXISTS customersis accepted in the default mode).CREATE TABLE customers(id SERIAL, ...)— theSERIAL/IDENTITYpseudo data types were removed in H2 2.x in favor ofBIGINT GENERATED BY DEFAULT AS IDENTITY.Since
ApplicationimplementsCommandLineRunner, this runs at startup and will throw, aborting the boot process. Even though this PR is scoped topom.xml, the dependency-managed H2 upgrade is what triggers the failure, so the DDL must be updated (or the H2 version pinned/compat mode set) in the same migration.Prompt for agents
Was this helpful? React with 👍 or 👎 to provide feedback.
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.
Confirmed:
Application.run(src/main/java/hello/Application.java:66-67) usesDROP TABLE customers IF EXISTSandid SERIAL, both rejected by H2 2.2.x. The fix belongs insrc/, which is explicitly out of scope for this PR — a sibling session owns the source migration (javax→jakarta plus this DDL). Not fixing here to avoid merge conflicts; flagged to the coordinator so the DDL lands with the source PR.