Correct IF gradle config.

This commit is contained in:
alexcrea 2024-06-20 19:19:21 +02:00
parent 3c60e157e4
commit 2e29e7f04e
No known key found for this signature in database
GPG key ID: 43FD265DB0DBF91F
2 changed files with 8 additions and 3 deletions

View file

@ -1,6 +1,7 @@
plugins { plugins {
kotlin("jvm") version "1.9.24" kotlin("jvm") version "1.9.24"
java java
id("com.github.johnrengelman.shadow").version("7.1.2")
} }
group = "xyz.alexcrea" group = "xyz.alexcrea"
@ -24,7 +25,7 @@ dependencies {
compileOnly("org.spigotmc:spigot-api:1.18-R0.1-SNAPSHOT") compileOnly("org.spigotmc:spigot-api:1.18-R0.1-SNAPSHOT")
// Gui library // Gui library
compileOnly("com.github.stefvanschie.inventoryframework:IF:0.10.14") implementation("com.github.stefvanschie.inventoryframework:IF:0.10.14")
// Protocolib // Protocolib
compileOnly("com.comphenix.protocol:ProtocolLib:5.1.0") compileOnly("com.comphenix.protocol:ProtocolLib:5.1.0")
@ -62,3 +63,8 @@ val fatJar = tasks.register<Jar>("fatJar") {
tasks.getByName("build") { tasks.getByName("build") {
dependsOn(fatJar) dependsOn(fatJar)
} }
// Shadow recesary dependency
tasks.shadowJar {
relocate("com.github.stefvanschie.inventoryframework", "xyz.alexcrea.inventoryframework")
}

View file

@ -8,7 +8,6 @@ load: POSTWORLD
authors: [ DelilahEve, alexcrea ] authors: [ DelilahEve, alexcrea ]
libraries: libraries:
- org.jetbrains.kotlin:kotlin-stdlib:1.9.24 - org.jetbrains.kotlin:kotlin-stdlib:1.9.24
- com.github.stefvanschie.inventoryframework:IF:0.10.14
commands: commands:
anvilconfigreload: anvilconfigreload: