Repository navigation
feat(new-project): 接手 Java Support 的 Gradle 新建项目入口与模板 - #6
Merged
Merged
Conversation
Gradle 的新建项目入口(gradle-java,Kotlin/Groovy DSL)从 Java Support 移到本插件:模板逐字节搬来,字段、条件和步骤与原定义一致。打包脚本检查每个入口引用的图标和模板目录确实在包内。
This was referenced Nov 5, 2026
xiaoyumuxi
marked this pull request as ready for review
November 5, 2026 11:38
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.
做了什么
Java 拆分的一部分:Gradle 相关的新建项目入口从 Java Support 移到本插件,宿主和 Java 插件都不再写 Gradle 内容。
gradle-java:项目区,Gradle 工程,可选 Kotlin/Groovy DSL、JDK、示例代码、GroupId、ArtifactId。openFiles与 Java Support 原定义逐项核对一致,只是去掉了原来的buildSystem选择。templates/java/gradle-kotlin、gradle-groovy、standard-*)从 Java Support 逐字节搬来。requires加projectGenerators: 1,权限加project.generate。scripts/package.mjs打包前检查每个入口引用的图标和模板目录都在包内,并且不能用绝对路径或..。合入顺序
要和 Lithe-IDEA/lithe-plugin-java#5 、Lithe-IDEA/lithe-plugin-maven#12 一起合入、一起发版。只合 Java 那边,新建项目窗口里会少掉 Gradle 入口。
验证
node scripts/package.mjs:通过,zip 里有全部模板。validate-index.mjs校验dist/gradle-build-0.1.1-darwin.zip:通过。node scripts/test.mjs需要真实的 Gradle,本机没有装:CI 在 Gradle 7.6 和 9.6.1 上都通过了。本次没有改buildSystems里的命令。