8000 7.2.26引入的变更导致下游项目编译失败 · Issue #490 · qiniu/java-sdk · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
7.2.26引入的变更导致下游项目编译失败 #490
Open
@wsy

Description

@wsy

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    to-be-confirmedSomeone must examine and confirm this is a valid issue and not a duplicate of an existing one.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0