redhat-developer / redhat-developer/vscode-java
Wrong gradle version autoinstalls constantly
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 2.3k
- Forks
- 546
- Avg merge
- 20h 1m
- Merged PRs (30d)
- 11
Description
This program installs gradle 8.11.1, instead of gradle 8.12.1.
gradle/wrapper/gradle-wrapper.properties has "distributionUrl=https://services.gradle.org/distributions/gradle-8.12.1-bin.zip". gradle 8.12.1 is already installed.
8.11.1 is autoinstalled alongside 8.12.1 and then used for resolution, so build.gradle errors:
The supplied phased action failed with an exception.
A problem occurred configuring root project 'AntiRank'.
Could not resolve all artifacts for configuration 'classpath'.
Could not resolve net.fabricmc:fabric-loom:1.10-SNAPSHOT.
Required by:
root project : > fabric-loom:fabric-loom.gradle.plugin:1.10-SNAPSHOT:20250323.164030-5
Plugin net.fabricmc:fabric-loom:1.10-SNAPSHOT:20250323.164030-5 requires at least Gradle 8.12. This build uses Gradle 8.11.1.
The settings are also not working.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with gradle/wrapper/gradle-wrapper.properties and the project settings, then inspect how the Gradle version used for resolution is selected. Reproduce the build.gradle failure and trace why Gradle 8.11.1 is installed despite the configured 8.12.1. Done means the project resolves with Gradle 8.12.1 without autoinstalling or using 8.11.1.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- build-system
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100