feat!: 重构为 Maven / Gradle 通用 Java 源码运行器 - #3
Merged
Merged
Conversation
统一自动准备、单模块类路径、主类发现、项目配置与终端补选,按职责组织源码并验证退出、信号和特殊路径。 BREAKING CHANGE: 以 run、plan 和严格长选项替代 start、-c、active=、local、no-run 与旧缓存操作。
用隔离 Maven / Gradle 夹具验收本机二进制、参数、测试作用域、资源与依赖变更;配置三种系统与两种 JDK 的原生检查,发布前检查并生成 SHA-256。
说明模块与主类交互、参数分层、目录职责、旧 CLI 迁移和技术路线,记录完整 smoke 及 java-template 隔离启动结果。
保留 macOS JDK 17 的 NFD 主类验收,避免源文件名规范化干扰;以 UTF-8 请求和 ASCII 代理任务传递 Gradle 路径,归一化 Maven 模型输出,并在 Windows JDK 原生编码无法表示参数时提前报错,防止静默替换。 补充 Windows 进程树和参数能力验收;本机回归、双 JDK Gradle 验证与完整二进制 smoke 通过。
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.
为 Maven 与 Gradle 源码工作区提供统一的开发启动入口:选择一个项目和主类,由构建工具准备运行产物,再启动独立 Java 进程。普通 Java 与 Spring Boot 等 classpath 应用使用同一套命令;模块、入口和启动参数可以通过
init保存,供后续运行复用。主要变更
run、init、plan、help、version命令,区分构建参数、JVM 参数和应用参数,严格校验.java-run.json及 CLI 覆盖规则。SHA256SUMS;标签发布使用通过原生验收的产物。命令与运行边界
这是一次 CLI 命令接口变更,调用脚本需采用 README 中的新命令及选项。默认执行
run并自动准备产物;--build=none使用已有产物,plan提供无构建副作用的静态预览。运行模型支持 Maven jar、Gradle Java 项目和传统
public static void main(String[])。框架配置通过 JVM 或应用参数传递;依赖自定义原生运行任务副作用的项目仍需使用对应任务。Maven reactor 自动准备会执行本地install,Windows 参数需能由实际 JDK 的原生命令行编码完整表示。标签发布校验 SemVer、标签与包版本一致性及许可证文件;分支演练保存验收产物和说明预览。
验证
以下结果均对应提交
dc95699: