googleapis / googleapis/google-cloud-java

Adopt Java Platform Module System (JPMS)

未关闭
#10,979 0 条评论 2 个 reaction 已指派 0 人 在 GitHub 查看
priority: p2 type: feature request
主要语言
Java
星标
2.1k
派生
1.2k
平均合并
1 天 23 小时
30 天内合并 PR
154

描述

The Java Platform Module System (JPMS; https://www.oracle.com/corporate/features/understanding-java-9-modules.html) has been introduced since Java 9. Cloud SDK for Java and Google API Client Libraries have not adopted the module system.

Example case: https://github.com/googleapis/google-cloud-java/issues/10975

# Workaround

Place the Cloud Java SDK in the class path, rather than the module path. The module path and the class path can coexist in a JVM.

# References

- https://github.com/grpc/grpc-java/issues/3522 When we evaluated few years ago, it got stuck with this gRPC issue about the module system. Now the issue has been resolved since last year.
- https://github.com/grpc/grpc-java/issues/2727#issuecomment-348209549 For gRPC, a workaround shared by a user was repackaging JAR files.

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

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