fix: 挡住 Spring Boot major 自动升级(防 CI 误升 4.x) - #14
Merged
Ruffianjiang merged 1 commit intoAug 24, 2026
Conversation
dependabot 此前将 spring.boot.version 从 2.7.18 误升到 4.1.1,而 Spring Boot 4.x 把 spring-boot-starter-aop 重命名为 spring-boot-starter-aspectj(破坏性变更),且要求 Java 17 + Jakarta 命名空间,导致 html2md 模块 CI 失败(PR #13)。 本提交为 .github/dependabot.yml 增加 ignore 规则,仅禁止 org.springframework.boot:spring-boot* 的 semver-major 自动升级, 保留 minor/patch 安全更新。业务代码与 spring.boot.version 属性不变。
Ruffianjiang
marked this pull request as ready for review
August 24, 2026 10:00
Ruffianjiang
enabled auto-merge (squash)
August 24, 2026 10:00
Ruffianjiang
deleted the
fix/java4fun-dependabot-springboot-major-guard
branch
August 24, 2026 10:10
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.
背景
PR #13(dependabot 批量更新)将根 pom 的
<spring.boot.version>从2.7.18机械升到4.1.1,触发 CI 失败。根因:Spring Boot 4.x 把spring-boot-starter-aop重命名为spring-boot-starter-aspectj(破坏性变更),且要求 Java 17 + Jakarta 命名空间,而html2md模块的 aop 依赖未写 version、靠 BOM 提供,旧坐标失去版本来源 → 构建失败。详见 java4fun PR #13 根因分析。本 PR 内容
仅修改
.github/dependabot.yml,增加 ignore 规则:org.springframework.boot:spring-boot*的 semver-major 自动升级(挡住 2.7.x→4.x 这类破坏性误升)。<spring.boot.version>2.7.18</spring.boot.version>属性均不变。关联
验证
mvn -pl html2md -am package -DskipTests确认 master 基线仍可编译(与本次改动无关)。