processing / processing/processing4

`processing/java/gradle` Rework libraries import

未关闭
#1,412 3 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

主要语言
Java
星标
497
派生
183
平均合并
4 小时 39 分钟
30 天内合并 PR
3

描述

Related https://github.com/processing/processing4/pull/1233

The current Processing Gradle plugin imports Processing libraries successfully, but only if the processing.sketchfolder is defined and Gradle 8 is used.

The plugin will supposedly stop working with Gradle 9 as support for adding dependencies after evaluation has been deprecated. (Mutating a configuration after it has been resolved, consumed as a variant, or used for generating published metadata. This behavior has been deprecated.).
Furthermore, because the dependencies of the project are defined within the .pde files we get a catch 22, either we parse the .pde files on plugin evaluation (which is not where that is supposed to be happening and breaks only running on changes) or we move the dependency declaration out of the .pde files. Neither is ideal, so more research is needed.

As for the sketchbook, it would be ideal if the plugin could find the sketchbook location on its own, but that would require finishing the refactoring work of the settingsFolder path and the sketchbookFolder into app:utils as those variables are currently locked behind running the PDE in its entirety.

贡献指南

打开贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

调研方向

首先检查相关的 PR 1233 以及 processing/java/gradle 下的插件。调查 Gradle 9 的依赖项评估弃用、.pde 文件如何定义依赖项,以及 app:utils 中 settingsFolder/sketchbookFolder 的重构。完成的标准是库可以在不要求 processing.sketchfolder 的情况下导入,并且插件仍与受支持的 Gradle 版本兼容。

由索引模型根据 Issue 内容生成。

评估

技术栈
java
领域
build-system
Issue 类型
重构
难度
5/5
预计耗时
一周以上
活跃度
停滞
描述清晰度
需要澄清
新手友好度
30/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。