日本語

Gradle - Jacocoバージョンの変更

要約 AutoFix が正しい Gradle バージョンを使用できるように、gradlew を必ずリポジトリにコミットしてください。

リポジトリに gradlew スクリプトが存在しない場合、AutoFix は Gradle 8.14.4 を使用します。これはほとんどの場合、リポジトリが必要とする Gradle バージョンではありません。その結果、Jacoco などのライブラリで予期しないバージョンアップが発生する可能性があります。

以下のコマンドを使用して、gradlew をリポジトリに追加してください。

## Navigate to your repo
cd <repository>

## Generate the gradlew wrapper
gradle wrapper

## Check that the gradlew wrapper is created and make it executable
ls gradlew
chmod +x gradlew

## Commit the wrapper to the repo
git add gradlew gradlew.bat gradle/wrapper/gradle-wrapper.jar gradle/wrapper/gradle-wrapper.properties
git commit -m 'Add the gradle wrapper'

詳細については、Gradle Wrapper のドキュメントを参照してください。