redhat-developer / redhat-developer/vscode-java

Wrong gradle version autoinstalls constantly

未关闭
#4,165 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

Gradle
主要语言
TypeScript
星标
2.3k
派生
546
平均合并
20 小时 1 分钟
30 天内合并 PR
11

描述

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.

Image

贡献指南

打开贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

调研方向

先从 gradle/wrapper/gradle-wrapper.properties 和项目设置入手,然后检查用于解析的 Gradle 版本是如何选择的。重现 build.gradle 失败,并追踪为什么在配置为 8.12.1 的情况下仍安装了 Gradle 8.11.1。完成标准是项目使用 Gradle 8.12.1 进行解析,且不会自动安装或使用 8.11.1。

由索引模型根据 Issue 内容生成。

评估

技术栈
java
领域
build-system
Issue 类型
缺陷
难度
3/5
预计耗时
1-2 天
活跃度
冷清
描述清晰度
基本清楚
新手友好度
45/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。