CycloneDX / CycloneDX/cyclonedx-core-java
Also read `license-mapping-override.json` to allow overriding license mapping
- 主要言語
- Java
- スター
- 120
- フォーク
- 90
- 平均マージ
- 12時間 43分
- マージ済み PR(30日)
- 18
説明
Change the code for [resolveFuzzyMatching()](https://github.com/CycloneDX/cyclonedx-core-java/blob/8a4d83e05889373024c3ea7ef1f630b35394e7ae/src/main/java/org/cyclonedx/util/LicenseResolver.java#L160)
In addition to `license-mapping.json` also read `license-mapping-override.json` and use the values from this file with priority.
This will allow end users to define their own mapping.
You can easily override the classpath in [Maven](https://github.com/jakub-bochenski/example-cyclonedx-core-java/blob/master/pom.xml#L51-L61) or Gradle.
Right now I'm building my own fork of `cyclonedx-core-java`, but I'm only interested in changing this file.
Allowing users to just provide this file on the classpath would be much easier than having to rebuild the whole library.
ATM I could just copy the `license-mapping.json` and change it and provide on the classpath, but
- it easily gets out of sync with upstream
- classpath order can be problematic
コントリビューションガイド
調査の方向性
src/main/java/org/cyclonedx/util/LicenseResolver.java の resolveFuzzyMatching() から始め、license-mapping.json がどのように読み込まれているかを確認します。license-mapping-override.json のサポートを追加し、その値を優先するようにしてから、プロジェクトに既存のテストまたはテストスイートを確認します。ユーザーがライブラリを再ビルドせずに classpath 上で override リソースを提供できれば完了です。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- java
- 領域
- tooling
- issue の種類
- 機能追加
- 難易度
- 2/5
- 見積もり時間
- 1〜3時間
- 活発さ
- 停滞
- 明瞭さ
- 明確に書かれている
- 初心者へのやさしさ
- 48/100