googleapis / google-cloud-java

Google Cloud Client Library for Java
https://cloud.google.com/java/docs/reference
Apache License 2.0
1.86k stars 1.06k forks source link

Adopt Java Platform Module System (JPMS) #10979

Open suztomo opened 1 week ago

suztomo commented 1 week ago

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