processing / processing/processing4

migrate custom `jssc` dependency to maintainable source used in `serial` library

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

还没有人认领这个 Issue。

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

描述

Problem

While trying to modernize the dependency and migrate it to a Gradle-based setup, this approach as reference:

dependencies {
    compileOnly(project(":core"))
    implementation("io.github.java-native:jssc:2.10.2")  
}

this invoke error methods getPortProperties() that aren't present in java-native/jssc or any other published versions.

because currently, the processing4/java/libraries/serial library depends on a customized version of jssc that is not available on Maven Central or Jitpack . It is documented as a modified version of gohai/java-simple-serial-connector and sampottinger/jssc,

currently migration pull request lives under library/jssc.jar file and is custom-built, and it's a hurdle to issue #1099

Solution
  • Create a downstream fork under the foundation org to maintain and publish the custom JAR

  • Or incorporate the needed source directly into the repo

Per @Stefterv suggestion, I’m opening this issue to track the long-term resolution of this dependency problem

贡献指南

打开贡献指南

从这里开始

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

调研方向

先阅读 java/libraries/serial 下的依赖配置和自定义库 library/jssc.jar,然后将引用的 pull request #1189 和 #1106 与 getPortProperties() 的使用情况进行比较。完成的标准是:serial 库不再依赖不可用的自定义 JAR,同时保留所需的 API,以及一个易于维护的依赖项或源代码位置。

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

评估

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

把新 issue 发到你的邮箱

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