redhat-developer / redhat-developer/vscode-java
Compilation error : Java is picking wrong version for dependency resolution for gradle projects
まだ誰も着手していません。
- 主要言語
- TypeScript
- スター
- 2.3k
- フォーク
- 546
- 平均マージ
- 20時間 1分
- マージ済み PR(30日)
- 11
説明
[Java is picking wrong version for dependency resolution for gradle projects]
Environment
- Operating System: MAC M1
- JDK version: 17
- Visual Studio Code version: latest
- Java extension version: latest
Steps To Reproduce
My Project is working with intellij but not in the vscode
(check image below)also the junit 4.3 is registed as dependency in the nested project build.gradle file and 4.2 is transitive dependency
the transitive dep is prioritizing the the registered version
because of this im getting errors in java file
- [step 1] create a gradle nested project and add same dependency (transitive) with different versions
- [step 2] this plugin is resolving the lowest version of plugin instead of greatest version of above
Current Result
Expected Result
4.3 should be taken priority than 4.2
Additional Informations
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
JDK 17を使用するmacOS上のネストされたGradleプロジェクトで、ネストされたプロジェクトのbuild.gradleに記載された依存関係の宣言に従って問題を再現します。直接の4.3依存関係と推移的な4.2依存関係について解決されたバージョンを、IntelliJおよびVS Codeと比較します。VS Codeが4.3を解決して使用し、報告されたJavaファイルのエラーが発生しなければ完了です。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- java, typescript
- 領域
- build-system, tooling
- issue の種類
- バグ
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 35/100