Dependency
Repository
To use my dependency, you need to set the repository once. This is needed so that the can install the important files.
Dependency
Besides the repository, you also need to enter my dependency, which I provide. This is needed next to the repository to download the relevant files. Please note, if you change the groupId or artifactId arbitrarily, problems will arise. The only thing you change is the version. In the best case the version will be changed automatically by me.
Library
Should you use a higher Minecraft version, it offers the possibility not to shade the API!
If you have it, make sure you change the scope when you use Maven. With the scope provided, the library is not shaded. With Gradle, change the implementation to compileOnly.
<dependency>
<groupId>io.github.rysefoxx.inventory</groupId>
<artifactId>RyseInventory-Plugin</artifactId>
<version>1.5.7</version>
<scope>provided</scope>
</dependency>
dependencies {
compileOnly("io.github.rysefoxx.inventory:RyseInventory-Plugin:1.5.7")
}
You now have to add the library in your plugin.yml under Libraries!
libraries:
- io.github.rysefoxx.inventory:RyseInventory-Plugin:1.5.7
If you have set everything correctly, you should notice that your jar is smaller. Furthermore you should have the following lines in your console:


Maven
<repositories>
<repository>
<id>sonatype</id>
<url>"https://s01.oss.sonatype.org/content/groups/public/"</url>
</repository>
</repositories>
<dependency>
<groupId>io.github.rysefoxx.inventory</groupId>
<artifactId>RyseInventory-Plugin</artifactId>
<version>1.5.7</version>
</dependency>
Gradle
Note that for Gradle there is a Groovy version and a Kotlin version. You need to know which one you need. If you are unsure, you can look in your project. If you have a build.gradle.kts, you know that you need the Kotlin version. Otherwise the Groovy version.
repositories {
mavenCentral()
maven { url "https://s01.oss.sonatype.org/content/groups/public/" }
}
dependencies {
implementation 'io.github.rysefoxx.inventory:RyseInventory-Plugin:1.5.7'
}
repositories {
mavenCentral()
maven { url = uri("https://s01.oss.sonatype.org/content/groups/public/") }
}
dependencies {
implementation("io.github.rysefoxx.inventory:RyseInventory-Plugin:1.5.7")
}
Help
If you can't do anything with this, it's not too bad. Navigate to the next page "Full Example". If you can't do anything with that either, please navigate to the whole project. Otherwise, I recommend that you first get to grips with one of the two build tools.
Last updated