Setting up Sponge

I’m using sponge for the first time and the tutorials/information I have on getting it set up on IntelliJ Idea with Gradle is outdated (2016,2017) so I was wondering what versions I add to my dependencies in my build,gradle file as the way I have it set up gives error messages for the testCompile line. Note: I have found that the newest/most stable version is 7.1.0, but I’m not sure what the compile one would be.

dependencies {
testCompile group: ‘junit’, name: ‘junit’, version: ‘7.1.0’
compile ‘org.spongepowered:spongeapi:3.0.0’
}

Any help with this would be great!

Junit latest version is 5 I believe… I’m not sure you got 7.1.0 for junit. That would explain why it’s throwing an error there.

I believe for the spongepowered dependency line you will want to find the latest sponge API version for that.

https://docs.spongepowered.org/stable/en/plugin/project/gradle.html
This is also an up-to-date sponge doc page on setting up a plug-in with sponge - I’d check this out.

There is also the Minecraft dev plugin for IntelliJ that handles a lot of this for you.

Alright will do, thanks!

You can try the idea plug-in minecraft development
It can make your development more convenient