build: Complete Spring Boot 3 migration: update dependencies, fix deprecated APIs, and add packaging workflow#235
Conversation
|
Thank you for following naming conventions! 😻 |
|
Thanks for opening this pull request! |
|
@Copilot |
…ted APIs - Remove log4j2.version override (2.17.0→SB3-managed 2.23.1) - Update MySQL connector (mysql:mysql-connector-java:5.1.49→com.mysql:mysql-connector-j:8.3.0) - Update git-commit-id plugin (pl.project13.maven→io.github.git-commit-id) - Replace deprecated ListenableFuture with CompletableFuture in VisibleThreadPoolTaskExecutor Co-authored-by: unknowIfGuestInDream <57802425+unknowIfGuestInDream@users.noreply.github.com>
PR Summary
|
|
@copilot mysql-connector-j 和 git-commit-id-maven-plugin 没定义版本号,怎么编译过? |
这两个的版本由
这也是 Spring Boot 推荐的用法——对于其管理范围内的依赖和插件,省略版本号可以确保与 Spring Boot 版本的兼容性。 |
|
@copilot 加一个只能手动执行的工作流文件,用于执行打包工作,打包产物保留1天 |
Co-authored-by: unknowIfGuestInDream <57802425+unknowIfGuestInDream@users.noreply.github.com>
|



Finishes the Spring Boot 3 migration by addressing remaining dependency and API issues, and adds a manual packaging workflow.
Proposed Changes
log4j2.versionoverride — The pinned2.17.0(a Log4Shell-era workaround) was downgrading from SB3's managed2.23.1. Removed to use the managed version.mysql:mysql-connector-java:5.1.49→com.mysql:mysql-connector-j(SB3-managed8.3.0). Old coordinates and 5.1.x are deprecated.pl.project13.maven:git-commit-id-plugin→io.github.git-commit-id:git-commit-id-maven-plugin. Old groupId is deprecated; SB3 uses the new coordinates.ListenableFutureinVisibleThreadPoolTaskExecutor—submitListenable()→submitCompletable(), removed deprecatedexecute(Runnable, long)override. These were deprecated in Spring Framework 6..github/workflows/package.ymltriggered only viaworkflow_dispatch. Builds withmvn package, uploadsgenCode.jaras an artifact with 1-day retention.Readiness Checklist
Author/Contributor
Reviewing Maintainer
enhancement,bug,documentation,styleordependenciesOriginal prompt
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.