Investigate ways to reduce JAR size

オープン
#122 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
35/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
活発
技術スタック
kotlin
領域
build-system

調査の方向性

Start by locating how the project assembles and packages its plugin JAR, then inspect the source set layout and compare class files across versions to measure duplication. Evaluate whether matching source set layout or a post hoc shared directory structure can deduplicate identical files; the issue states a preference for file deduplication. Done means demonstrating a workable approach that reduces JAR size.

索引モデルが issue の本文から書いたものです。

説明

Classes are duplicated across versions. Further, classes that are legitimately different might still largely share the same contents

We should find a way to reduce JAR size

Options:

  • deduplicate individual files
    • Perhaps by matching source set layout?
    • Or by post-hoc figuring out the optimal shared directory structure
    • This won't compress the similar-but-not-exactly-equal files though.
  • Ship plugin using a different archive format
    • We'd have to ship a reader for such format inside the developer's gradle support plugin
    • Not very interoperable
  • Use a JAR, but compress plugin code in a different format inside
    • Entry point will need an additional step to decompress the files (and we'll need to ship such a decompressor)
    • A bit unusual and opaque

My preference is "deduplicate individual files"

主要言語
Kotlin
スター
34
フォーク
1
平均マージ
1日 9時間
マージ済み PR(30日)
3

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

Kotlin/compiler-plugin-dev-kit のほかの issue

Kotlin/compiler-plugin-dev-kit の issue をすべて見る

似ている issue

Kotlin の issue をもっと見る

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

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