Help me (Maven, Gradle)


#1

After reading the documentation, understanding nothing, I appeal to the forum with a request to briefly describe to me how to work with assemblies Gradle and Maven.


#2

Ok. Gradle or Maven? My knowledge is they can not be combined.

It also depends on your IDE for the most simplistic instructions. So do you use Eclipse? intelij? Netbeans? Other?


#3

I use IntelJ Idea.


#4

I personally use Maven due to habbit. So here is the instructions on how to setup the first stage of the maven project.

After that in your project you will find pom.xml
Open that in a basic view (or what ever its called in intelij).

After that insert the following line just before the close tag.

<repositories>
    <repository>
        <id>sponge</id>
 <url>https://repo.spongepowered.org/maven</url>
    </repository>
</repositories>
<dependencies>
    <dependency>
        <groupId>org.spongepowered</groupId>
        <artifactId>spongeapi</artifactId>
        <version>6.0.0</version>
        <scope>provided</scope>
    </dependency>
</dependencies>

After that save the file and refresh the project. And sponge api will be added to your project. Done


#5

https://docs.spongepowered.org/stable/en/plugin/index.html Feel free to change the language, there are translations available in a variety of languages.

Also, if you want a silent video that shows how easy it is to get started using MCDEV I made one for you super quickly here: https://www.youtube.com/watch?v=ZCQK3gSMNjU&feature=youtu.be


#6

Specifically, https://docs.spongepowered.org/stable/en/plugin/project/gradle.html will tell you how to use Gradle with Sponge.