Enhancement: fall back to `.java-version`, `.sdkmanrc`, and `.tool-versions` for the Java runtime
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 初心者へのやさしさ
- 75/100
- issue の種類
- 機能追加
- 明瞭さ
- 明確に書かれている
- 活発さ
- 活発
- 技術スタック
- java, typescript
調査の方向性
Read src/core-open/scanners/java-scanner.ts around the Java version detection at lines 187–196 and 557–570, then inspect the Gradle and Kotlin toolchain tests named in the issue. Add coverage for each pin file, precedence, and skipped values; done means pin files supply Java 17 when the build has no version while Gradle or POM versions still take precedence.
索引モデルが issue の本文から書いたものです。
説明
- Difficulty: small to medium
- Area: Java / Maven / Gradle
Problem
The Java runtime comes only from POM properties (java.version, maven.compiler.source / target / release, …) and from Gradle sourceCompatibility, JavaLanguageVersion.of(N), and jvmToolchain(N) (src/core-open/scanners/java-scanner.ts, around lines 187–196 and 557–570). A Maven or Gradle project that pins the JDK only with jenv, SDKMAN, or asdf reports no runtime:
# .java-version
17
# .sdkmanrc
java=17.0.10-tem
# .tool-versions
java temurin-17.0.10
#658 (maven-compiler-plugin <release> / <source>) stays a separate issue and should still win when it is implemented, because it is declared in the build file.
Expected behaviour
When the POM or Gradle build has not set a Java version, look in the project directory (and, for .sdkmanrc / .tool-versions / .java-version, the same directory as the manifest) for those pin files. Extract a numeric major (and minor, if present) from:
.java-version: first non-comment token; allow17oropenjdk64-17.0.10.sdkmanrc: thejava=value; use the leadingdigits.digits/ major (strip a vendor suffix such as-tem,-amzn).tool-versions: thejavaline; take the first token that contains a digit run (temurin-17.0.10→17.0.10or17)
Precedence: build-file version (POM properties / Gradle toolchain) > .java-version > .sdkmanrc > .tool-versions. Skip system and unparsable values. A missing file never fails the scan.
Acceptance
- Add tests next to
test/gradle-java-version.test.ts/test/gradle-kotlin-jvmtoolchain.test.ts. - Each pin file alone reports a Java 17 runtime when the build file has no version.
- A Gradle
jvmToolchain(21)or a POMmaven.compiler.releasestill wins over the pin files. - Precedence between the three pin files matches the list above.
- Unparsable or
systemvalues yield no runtime from that file.
- 主要言語
- TypeScript
- スター
- 4
- フォーク
- 3
- 平均マージ
- 1日 22時間
- マージ済み PR(30日)
- 76
環境構築
- Dockerfile または Docker Compose ファイルあり
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
vibgrate/cli のほかの issue
-
documentation good first issue
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 1 日以内に返信
-
bug good first issue
難易度 2/5 1〜3時間 初心者へのやさしさ 85/100
メンテナーはふだん 1 日以内に返信
-
enhancement good first issue
難易度 2/5 1〜3時間 初心者へのやさしさ 86/100
メンテナーはふだん 1 日以内に返信
-
enhancement good first issue
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
メンテナーはふだん 1 日以内に返信
-
enhancement good first issue
難易度 2/5 1〜3時間 初心者へのやさしさ 85/100
メンテナーはふだん 1 日以内に返信
似ている issue
-
area: documentation status: in progress type: documentation
難易度 1/5 1時間未満 初心者へのやさしさ 76/100
Oddmash/oddmash-ui#222 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 79/100
appium/appium-wincore-driver#169 ·
メンテナーはふだん 1 日以内に返信
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 66/100
メンテナーはふだん 3 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
india-ultimate/hub#715 ·
メンテナーはふだん 1 日以内に返信
-
documentation Entwickler
難易度 1/5 1時間未満 初心者へのやさしさ 89/100
メンテナーはふだん 1 日以内に返信