Skip to content

Commit

Permalink
fix: dependency for build fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
virus-rpi committed Jul 27, 2023
1 parent a202632 commit 27619fa
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion build.gradle
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
plugins {
id 'fabric-loom' version '1.0-SNAPSHOT'
id "com.github.johnrengelman.plugin-shadow" version "2.0.3"
id 'maven-publish'
}

Expand All @@ -26,9 +27,10 @@ dependencies {

// Fabric API. This is technically optional, but you probably want it anyway.
modImplementation "net.fabricmc.fabric-api:fabric-api:${project.fabric_version}"

modImplementation 'com.sparkjava:spark-core:2.9.4'

shadow(implementation('com.sparkjava:spark-core:2.9.4'))

// Uncomment the following line to enable the deprecated Fabric API modules.
// 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.

Expand Down Expand Up @@ -61,6 +63,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
publishing {
publications {
Expand Down

0 comments on commit 27619fa

Please sign in to comment.