Eclipse Gradle configration

1. update Gradle version

https://projects.eclipse.org/projects/tools.buildship

In Eclipse

Reference -> Install new Software ... -> Add/Manager "buildship" 

http://download.eclipse.org/buildship/updates/e47/releases

2. Configration Project Gradle version


open file : gradle-wrapper.properties

Find the line:

distributionUrl=https\://services.gradle.org/distributions/gradle-*.*-bin.zip

Change *.* for your wished version


3. Compile or Build Error: Execution failed for task ':compileJava'.


Solve:  You can create a gradle.properties file in .gradle and specify the JRE/JDK you want gradle to use as in this example:

org.gradle.java.home=C:/Program Files/Java/jdk1.8.0
For more information see  https://docs.gradle.org/current/userguide/build_environment.html

猜你喜欢

转载自blog.csdn.net/pandoraliu/article/details/79482533