Providing an automatic module name

未關閉
#866 1 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視

@mthl 已經在處理了。

開始於 2022年10月26日。

  • #867 來自 @mthl —— 未關閉

評估

難度
2/5
預估耗時
1-3 小時
新手友好度
52/100
Issue 類型
功能
描述清晰度
基本清楚
活躍度
停滯
技術堆疊
java
領域
build-system

研究方向

檢查建立 JAR 及其 manifest 的建置設定。驗證產生的成品包含值為 com.google.maps 的 Automatic-Module-Name 項目,然後執行可用的建置或封裝檢查,以確認該項目獲得保留。

由索引模型根據 Issue 內容生成。

描述

stale triage me type: feature request

Since Java 9, Java provides a module system known as Jigsaw which allow library authors to restrict access of their internal packages and provide a better explicit dependency abstraction.

In order to benefit from this "new" feature, Java libraries need to provide a module-info.java file inside the jar artefact to declare what they requires and what they exports.

However since this can be non-trivial to become modular a important first step for library authors is to register a module-name to enable libraries depending on them to become modular without having to wait for modular refactoring work to be done. To register a module name a library simply need only to define the Automatic-Module-Name property in the META-INF/MANIFEST.MF file inside their jar artefact.

I suggest that this library should register the module name com.google.maps.

主要語言
Java
星號
1.8k
分支
972
平均合併
5 小時 7 分鐘
30 天內合併 PR
1

環境準備

從這裡開始

  1. 先讀完整個 Issue,再讀專案的貢獻指南。
  2. 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
  3. Fork 儲存庫,在一個分支上完成修改。
  4. 送出 Pull Request,並在描述裡引用這個 Issue 編號。

googlemaps/google-maps-services-java 的其他 Issue

查看 googlemaps/google-maps-services-java 的全部 Issue

相似的 Issue

更多 Java Issue

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。