7.2.26引入的变更导致下游项目编译失败
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
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
- No Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from qiniu/java-sdk
-
Difficulty 1/5 Under an hour Newbie friendliness 68/100
-
设置attname 出现中文乱码Open
Difficulty 3/5 1-2 days Newbie friendliness 45/100
-
河北地区故障你们还修吗?Open
Difficulty 5/5 Over a week Newbie friendliness 15/100
-
CDN的有些接口没找到,是否还未支持Open
Difficulty 4/5 3-5 days Newbie friendliness 35/100
-
Difficulty 5/5 Over a week Newbie friendliness 25/100
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
commonmark/commonmark-java#460 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
-
1.21.1见幽匿感测体就崩溃Open
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
-
Make branch and label autocomplete matching locale-independentPossibly taken A pull request linked to this issue is open or already merged. Open
Difficulty 2/5 1-3 hours Newbie friendliness 83/100
jenkinsci/gitlab-plugin#1950 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
commons-app/apps-android-commons#6984 ·
Maintainers usually reply within 2 days