Problems compiling Sponge on Zorin OS 9 Ultimate

Hey guys!

I tried to compile Sponge on my Linux System (running Zorin OS 9 Ultimate), but I got this gradle error:

[email protected]:~/Projects/Sponge$ gradle setupDecompWorkspace --refresh-dependencies

FAILURE: Build failed with an exception.

* Where:
Build file '/home/eludwig/Projects/Sponge/build.gradle' line: 13

* What went wrong:
A problem occurred evaluating root project 'Sponge'.
> Could not find method jcenter() for arguments [] on repository container.

* 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.802 secs

Gradle couldn’t find the method jcenter() - does anyone knows how to fix it?

  • Morph

You’re using an outdated version of gradle. Update your gradle or IDE. You can tell since it’s saying it could not find a method, even though it’s not complaining about dependencies.

Ok, than I have to get gradle from PPA or another source. Thanks @Ivan :wink:

  • Morph

You could build it from source, so you’ll always have the latest version. Instructions and source itself here:

All right, thanks! :wink:

  • Morph

You could also try to run the gradlew.sh file, that will pull in its own gradle to build with, designed for the systems that don’t have it installed or possibly outdated like yours.

1 Like