sdj64 / Highlands

15 stars 26 forks source link

Project not buildable using gradlew #31

Open ghost opened 6 years ago

ghost commented 6 years ago

gradlew setupDecompWorkspace fails:

FAILURE: Build failed with an exception.

  • Where: Build file 'C:\Razorjack\minecraft\dev-1.8\src\Highlands\build.gradle' line: 18

  • What went wrong: A problem occurred evaluating root project 'Highlands'.

    ForgeGradle 2.0 requires Gradle 2.3 or above.

  • Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

BUILD FAILED

Total time: 1.812 secs

Robijnvogel commented 6 years ago

My guess is that they used that locally installed version of Gradle to setup and build the project. As such, this "bug" was never encountered by themselves.

You can easily fix this by downloading and extracting a newer version of gradle (not the latest), adding its directory to your environment variables and running gradle wrapper in your workspace's top directory. Or... you could use my fork in which the gradle wrapper should be fixed and I also added a bit of information to the README.

On further inspection, it seems I downgraded ForgeGradle even? Keep in mind that it's been a year since I last looked at this stuff.