升级Gradle [英] Upgrading Gradle

查看:90
本文介绍了升级Gradle的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我完全知道Gradle网站上有一些页面,说明如何升级,但仅从4.x起.

I am fully aware that there are pages on the Gradle website that say how to upgrade, but only from 4.x and up.

我正在尝试遵循教程制作一个简单的我的第一个" Minecraft mod.在其中,系统会告诉您安装Forge 1.7.10,据我所知,它可以在Gradle 2.0上运行.

I am trying to follow a tutorial in making a simple 'my first' Minecraft mod. In it, you are told to install forge 1.7.10, which, from what I understand runs on Gradle 2.0.

为了让我继续学习本教程,在进行了一些挖掘之后,看来Gradle 2.0与JDK 12.0.2不兼容,但是我不确定如何解决这个问题.

In order for me to continue with the tutorial, after some digging, it appears that Gradle 2.0 is not compatible with JDK 12.0.2, but I'm not entirely sure how to solve this.

任何帮助都非常珍贵".

any help is much 'preciated.

推荐答案

扩展Chriki的答案,您可以在$ projectroot/gradle/wrapper/gradle-wrapper.properties中更改gradle版本. 在这里,您可以更改路径以指向已下载的gradle-bin, 像这样的(distributionUrl=../../../build/tools/gradle-4.10.3-bin.zip) 或直接到gradle仓库 (例如distributionUrl=https\://services.gradle.org/distributions/gradle-4.10.3-bin.zip)

extending the answer from Chriki, you can change the gradle version in $projectroot/gradle/wrapper/gradle-wrapper.properties here you can change the path to point to already downloaded gradle-bin, something like this (distributionUrl=../../../build/tools/gradle-4.10.3-bin.zip) or directly to gradle repository (e.g. distributionUrl=https\://services.gradle.org/distributions/gradle-4.10.3-bin.zip)

这篇关于升级Gradle的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆