shadowed dependency
All checks were successful
Build and Publish / Build and Publish Discord Bot (push) Successful in 12s
Build and Publish / Build and Publish Minecraft Mod (push) Successful in 1m54s

This commit is contained in:
Xeovalyte 2023-08-12 12:11:57 +02:00
parent 624af4f5fd
commit 765ab7f8d1

View File

@ -1,6 +1,7 @@
plugins { plugins {
id 'fabric-loom' version '1.3-SNAPSHOT' id 'fabric-loom' version '1.3-SNAPSHOT'
id 'maven-publish' id 'maven-publish'
id 'com.github.johnrengelman.shadow' version '7.0.0'
} }
version = project.mod_version version = project.mod_version
@ -42,7 +43,7 @@ dependencies {
// These are included in the Fabric API production distribution and allow you to update your mod to the latest modules at a later more convenient time. // These are included in the Fabric API production distribution and allow you to update your mod to the latest modules at a later more convenient time.
// modImplementation "net.fabricmc.fabric-api:fabric-api-deprecated:${project.fabric_version}" // modImplementation "net.fabricmc.fabric-api:fabric-api-deprecated:${project.fabric_version}"
modImplementation "com.sparkjava:spark-core:2.9.4" shadow(implementation("com.sparkjava:spark-core:2.9.4"))
} }
processResources { processResources {
@ -73,6 +74,17 @@ jar {
} }
} }
shadowJar {
configurations = [project.configurations.shadow]
archiveClassifier.set("dev")
relocate "net.objecthunter", "de.siphalor.spiceoffabric.shadow.net.objecthunter"
}
remapJar {
dependsOn(shadowJar)
inputFile = tasks.shadowJar.archiveFile
}
// configure the maven publication // configure the maven publication
publishing { publishing {
publications { publications {