How to setup maven with sponge!

I can’t find a gradle plugin for bytecode remapping, meaning I’ll continue to use maven. :3

1 Like

I can not seem to figure out how how to get the eclipse gradle plugin to work (some error when trying to install it) other wise I would be learning how to use it.

Until then this tutorial is helpful.

That’s pretty cool, but nowhere near as cool as Overmapped in terms of functionality.

but that was made by the guy who filed the dmca on bukkit

Doesn’t mean it doesn’t work.

So, is there a good, basic Gradle & Eclipse tutorial somewhere? I haven’t used Maven or any other tool like this before.

Well basicly, if you understand how maven works. Gradle shouldn’t be so hard.

The reason why I use maven is because gradle lacks rules. For example if you want to deploy a jar to a maven repo with gradle. If the properties aren’t set correctly it wouldn’t work. These properties are groupId and Version. Gradle doesn’t care if these are left empty. Maven will definitely complain about that. It can be that I misunderstood how gradle works … .

Example of missing properties in existing projects (@MrMysteri0us this isn’t meant offensive):

Thomas, I think you misread me: I have ZERO knowledge of Gradle AND Maven. So am really looking for a Gradle 101 tutorial.

1 Like

Well I have almost no knowledge of gradle xD. But I am learning it at this moment. This is where I start for learning gradle: http://www.gradle.org/docs/current/userguide/userguide.html.

Also I use IDEA to help me with it. Their is no reason why you should start from scratch.

I’m using your repo for my projects (using gradle). keep it updated :wink:

1 Like

Thomas, the Gradle User Guide is 66 chapters and several hundred pages long. Not really a place to start learning a tool like this.

Ctr + f is such a wonderful tool :smiley:. But anyway I ditched gradle for so far. flyway and jooq don’t work good with it (or I don’t understand how I can make it work).

That flyway? http://flywaydb.org/ Just take a close look at the page…
http://flywaydb.org/getstarted/firststeps/gradle.html

Yeah I did that but the way I set it up is like this:

  1. flyway inits database
  2. jooq generates code
  3. Builds plugin (succeeded)

How gradle does it:

  1. generates jooq
  2. builds plugin (fails)
  3. flyway inits database

Off course that doesn’t work out good.

Could you show me how you set it up (build.gradle)? Also, what commandline command are you running.

This is my build.gradle Setup.

Oh, sorry, i meant @thomas15v

@TBotV63
This is the build.gradle I eventually ended with.
http://hastebin.com/vepoxameyo.vbs

Thanks. And then you run gradle build?