Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

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

Open
#490 11 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
35/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
java
Domain
build-system

Research direction

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.

Written by the indexing model from the issue text.

Description

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?

Dominant language
Java
Stars
559
Forks
469
PR merge metrics
No merged PRs in 30d

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from qiniu/java-sdk

All issues in qiniu/java-sdk

Similar issues

More Java issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.