#NMS with gradle

1 messages · Page 1 of 1 (latest)

lavish skiff
#

Hey guys! I know this topic is not new, but I'm really struggling to use NMS with gradle even after a full-day's worth of googling 😅

I ran the spigot BuiltTools successfully, but I don't know what to put into my build.gradle file to make it work.

Any help would be much appreciated :D

tough granite
#

might be worth looking into paper's paperweight

#

you'll just have to ensure not to use paper specific methods, else you cannot run on spigot servers

lavish skiff
#

I don't quite follow...

tough granite
#

Do you know what paper is ?

lavish skiff
#

Yes :)

tough granite
#

They use gradle instead of maven as their build tool

#

for this, they also provide some pretty good tooling

#

while this allows you to develop plugins very easily against server internals, you will have to ensure you don't use any server internals paper added themselves, else your code does not run on spigot servers

lavish skiff
#

Perhaps I'm utterly confused... but I was under the impression NMS was it's own seperate thing 😅

tough granite
#

NMS just means the inner workings of the server

#

e.g. the minecraft server and the implementation of the plugin API

lavish skiff
#

ah I see

#

so NMS with spigot is impossible with gradle?

tough granite
#

Well, there is only a maven plugin but you could technically run the commands for reobfuscation yourself

#

gradle does allow you to execute shell commands during your build

#

it is just very ugly 😅

lavish skiff
#

I see hmmmm

#

is there a specific reason why I should stick with gradle then and not move over to maven?