Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

7.2.26引入的变更导致下游项目编译失败

未关闭
#490 11 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
2/5
预计耗时
1-3 小时
新手友好度
35/100
Issue 类型
缺陷
描述清晰度
基本清楚
活跃度
停滞
技术栈
java
领域
build-system

调研方向

Start by inspecting commit f6b5447d9117809de5f4c1a374c8fac974f5b3f5 and the dependency declaration changed from compile to implementation. Reproduce the downstream Maven compilation failure involving com.qiniu.util.Json and com.google.gson.JsonElement. Done means downstream users can compile without adding Gson directly, with dependency behavior verified.

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

描述

to-be-confirmed

gradle implementation [ci skip]
这个commit把相关依赖由compile改为implementation。下游项目在构建的时候会有Maven编译错误。

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.8.1:compile (default-compile) on project projectName: Compilation failure
[ERROR] /somepath/SomeClass.java:[49,43] 无法访问com.google.gson.JsonElement
[ERROR] 找不到com.google.gson.JsonElement的类文件

我们的项目仅仅用了你们的com.qiniu.util.Json,并没有直接依赖Gson库,所以我们不该添加Gson的依赖项。
Gson的依赖是你们引入的,所以是否你们该把implementation改为api?

主要语言
Java
星标
559
派生
469
PR 合并指标
30 天内没有已合并 PR

环境准备

  • 没有 Dockerfile 或 Docker Compose 文件
  • 没有 Pull Request 模板
  • 阅读贡献指南

从这里开始

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

qiniu/java-sdk 的其他 Issue

查看 qiniu/java-sdk 的全部 Issue

相似的 Issue

更多 Java Issue

把新 issue 发到你的邮箱

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