blowdryerInline
还没有人认领这个 Issue。
评估
- 难度
- 5/5
- 预计耗时
- 一周以上
- 新手友好度
- 35/100
- Issue 类型
- 功能
- 描述清晰度
- 基本清楚
- 活跃度
- 停滞
- 技术栈
- groovy, kotlin
- 领域
- build-system, cli
调研方向
首先定位现有的 blowdryer.file() 处理逻辑,以及 gradlew tasks 背后的 Gradle 插件入口点。完成标准是:blowdryerInline 任务能够将引用的文件递归展开为临时的 .blowdryer-inline.gradle 文件,并可选择使用 --file 限制处理范围。
由索引模型根据 Issue 内容生成。
描述
After using blowdryer for a bit, it's made our build files much easier to read, since all of our common patterns have been refactored into one repository and it's only the high-entropy stuff that's left to view. My biggest worry is that other people will have a hard time reading them, since they are now obfuscated a bit.
Here is a proposed enhancement. It's fine to implement only for groovy or only for kotlin - people who want the other would benefit hugely from the existing as a guide.
Viewing a blowdryer-enhanced project
If you are working with a project that uses blowdryer, especially someone else's project, it can be confusing to track down the build scripts they are calling out to. To address this, you can use gradlew blowdryerInline and it will do the following:
- for every gradle file (
foo.gradle) which usesblowdryer.file() - write out a new temp gradle file (
foo.blowdryer-inline.gradle) - where each call to
blowdryer.file()has been recursively copy-pasted into the expanded file for easy viewing
You can limit this to just one file with gradlew blowdryerInline --file someFile.gradle
- 主要语言
- Java
- 星标
- 29
- 派生
- 6
- PR 合并指标
- 30 天内没有已合并 PR
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
diffplug/blowdryer 的其他 Issue
-
enhancement
难度 5/5 一周以上 新手友好度 25/100
-
enhancement
难度 4/5 3-5 天 新手友好度 35/100
-
enhancement pr-welcome
难度 5/5 一周以上 新手友好度 30/100
-
enhancement pr-welcome
难度 5/5 一周以上 新手友好度 25/100
查看 diffplug/blowdryer 的全部 Issue
相似的 Issue
-
area/kotlin
难度 2/5 1-3 小时 新手友好度 84/100
维护者通常 1 天内回复
-
难度 1/5 1 小时以内 新手友好度 75/100
-
难度 2/5 1-3 小时 新手友好度 68/100
维护者通常 1 天内回复
-
Large page[number] overflows the computed offset and returns the wrong page可能已有人在做 @auraseb 今天认领。 未关闭
难度 2/5 1-3 小时 新手友好度 78/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 70/100