我正在尝试使用Eclipse中的Gradle buildship编译一个“hello world”Cucumber应用程序。当我尝试在Eclipse中运行它(选择“build”)时,我收到以下错误:
Launching gradle tasks failed due to an error connecting to the gradle
build. Could not execute build using gradle distribution
https://services.gradle.org/distributions/gradle-3.5-bin.zip
Some build operations have not been marked as completed
我可以使用相同的配置使用命令行成功构建:
:compileJava
:processResources NO-SOURCE
:classes
:jar
:assemble
:compileTestJava
:processTestResources
:testClasses
:test
skeleton.RunCukesTest STANDARD_OUT
...waiting...
...growling...
1 Scenarios (1 passed)
3 Steps (3 passed)
0m0.085s
:check
:build
BUILD SUCCESSFUL
Total time: 3.19 secs
以下是命令行的版本信息:
C:\ Users \ whalen \ Documents \ ws \ workspace \ Cucumber-hello-world> gradlew -version
------------------------------------------------------------
Gradle 3.5
------------------------------------------------------------
Build time: 2017-04-10 13:37:25 UTC
Revision: b762622a185d59ce0cfc9cbc6ab5dd22469e18a6
Groovy: 2.4.10
Ant: Apache Ant(TM) version 1.9.6 compiled on June 29 2015
JVM: 1.8.0_131 (Oracle Corporation 25.131-b11)
OS: Windows 10 10.0 amd64
关于可能阻止构建在Gradle构建上取得成功的任何想法都将非常感激!