spring-guides / gs-consuming-rest

Consuming a RESTful Web Service :: Learn how to retrieve web page data with Spring's RestTemplate.
https://spring.io/guides/gs/consuming-rest/
Apache License 2.0
195 stars 287 forks source link

./gradlew build has FileNotFoundException #8

Closed kentoj closed 10 years ago

kentoj commented 10 years ago

After successfully completing a few other guides (Building a RESTful Web Service, Building Java Projects with Gradle) then running ./gradlew build gives me a FileNotFoundException as seen in this gist: https://gist.github.com/kentoj/31ef5123d31712594c87

I am running the ./gradlew build command after the "Build an executable JAR" section.

The app runs correctly when I try to run it with java -jar build/libs/gs-consuming-rest-0.1.0.jar

Update: After hitting this issue with the 'consuming-rest' guide I did the actuator-service guide and I was successful in using ./gradlew build there.

gregturn commented 10 years ago

Did you edit build.gradle and alter the version, or edit gradle/wrapper any? The failure is in the gradle wrapper trying to download another version of gradle that doesn't seem to exist. Or perhaps you have a very old copy of this guide? If you update to the latest, does it work?

gregturn commented 10 years ago

It works for me.