Gradle cant build sponge

Hey, i want to build sponge by gradle, but when i type “gradlew build” in sponge-master it returns: Name build gradlew is not recognized as an internal or external command.

I typed too this: set path=%path%;C:\Program Files\Java\jdk1.7.0\bin;C:\Users\cehaudeigrek\Desktop\gradle-2.1\bin

But it’s still doesnt work.

Can someone help me?

You have two options with respect to gradle: install it on your system and use that binary; or use the included gradlew(rapper).

The easier option is to use the gradle wrapper, and on Windows you should invoke the wrapper with gradlew.bat, and not just gradlew.

If you installed gradle and it’s on your PATH, invoke gradle with the gradle command (without the trailing w).

1 Like

The grandle wrapper is only included in the SpongeAPI repository. If you want the wrapper to work on Sponge, put the content of SpongeAPI-master in the relative path Sponge-master/SpongeAPI. Then you can run “gradlew build” in Sponge-master and it will build Sponge as well as SpongeAPI.

1 Like

I think i’m doing something wrong, but this method doesnt work ;/

Fixed :wink:

Thanks for help.