GoogleCloudPlatform / GoogleCloudPlatform/functions-framework-java

Add Java Platform Module System (JPMS) Support

オープン
#372 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る
enhancement P2
主要言語
Java
スター
154
フォーク
63
PR マージ指標
30日以内にマージされた PR はありません

説明

Add support for running functions on the module path (--module-path) instead of only the classpath (--classpath) to enable full Java Platform Module System (JPMS) features in the Functions Framework.

Currently, the Functions Framework for Java only supports classpath-based execution, which prevents developers from utilizing JPMS features at runtime even when their code is properly modularized with module-info.java files.

Modern Java applications using JPMS face the following issues:
1. module-info.java files are ignored at runtime (treated as regular classes on classpath)
2. provides...with service provider declarations don't work, requiring fallback to legacy META-INF/services files
3. Module encapsulation and strong accessibility rules are not enforced
4. No module-level dependency management or version conflict resolution
5. Cannot leverage jlink to create optimized custom runtime images with only required modules, resulting in larger deployment artifacts

This feature request requires changes across three layers:

1. Local Development (Invoker CLI) - Add --module-path support
2. Build Tooling (Maven/Gradle plugins) - Add module-path configuration (right now classpath is hardcoded [here](https://github.com/GoogleCloudPlatform/functions-framework-java/blob/de202439e223dcb48e3a3319e4c0d57adc450ec8/function-maven-plugin/src/main/java/com/google/cloud/functions/plugin/RunFunction.java#L68C5-L68C58)
3. Cloud Runtime Infrastructure - Update Google Cloud Functions runtime to support modular execution

コントリビューションガイド

コントリビューションガイドを開く

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。