fix: 钉回 htmlunit/json-path 至 Java 8/11 兼容版本(挡 major 误升) - #16
Merged
Conversation
- html2md/pom.xml: org.htmlunit:htmlunit 5.4.0 -> 4.21.0(5.x 要求 Java 17,项目以 Java 11 编译导致 master CI 失败:bad class file wrong version 61.0 should be 55.0) - .github/dependabot.yml: 新增 ignore 挡 org.htmlunit:htmlunit 的 semver-major,与 spring-boot* 规则并列,防止再次误升 Java 17 依赖
Ruffianjiang
enabled auto-merge (squash)
August 25, 2026 05:27
java4fun 以 Java 11 编译,com.jayway.jsonpath:json-path 3.0.0 要求 Java 17(class 61.0),导致 PR #16 的 Java CI 编译失败:bad class file wrong version 61.0 should be 55.0。 本 commit 在 htmlunit 5.4.0→4.21.0 基础上追加 json-path 3.0.0→2.10.0(最新 2.x,Java 8 兼容,含安全更新);dependabot.yml ignore 再增加 com.jayway.jsonpath:json-path 的 semver-major,与 spring-boot*/htmlunit 并列。
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.
根因
dependabot 将 java4fun 两个 Java 11 项目依赖误升到要求 Java 17 的大版本,导致 master 的
Java CI编译失败(bad class file wrong version 61.0 should be 55.0):org.htmlunit:htmlunit4.x → 5.4.0(Java 17)com.jayway.jsonpath:json-path2.x → 3.0.0(Java 17)PR #14 仅挡了 spring-boot major,漏挡 htmlunit/json-path major,本次补全。
变更
html2md/pom.xml:htmlunit 5.4.0 → 4.21.0(最新 4.x,Java 11 兼容)。html2md/pom.xml:json-path 3.0.0 → 2.10.0(最新 2.x,Java 8 兼容)。.github/dependabot.yml:ignore 新增org.htmlunit:htmlunit与com.jayway.jsonpath:json-path的 semver-major,与 spring-boot* 规则并列。验证
业务代码不动;均为同大版本内回退(4.x / 2.x 是项目原本使用的版本)。请在 Java 11 本机
mvn -pl html2md -am compile确认通过后,观察 PR #16 的Java CIrun 转绿(auto-merge 已开启,CI 通过即自动合入)。