Skip to content

Commit

Permalink
fix: I went through hell for this commit
Browse files Browse the repository at this point in the history
  • Loading branch information
andantet committed Dec 16, 2024
1 parent 0a879b9 commit d98e323
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 2 deletions.
16 changes: 14 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ plugins {
id "fabric-loom" version "1.9-SNAPSHOT"
id "org.jetbrains.kotlin.jvm"
id "maven-publish"
id "com.gradleup.shadow"
}

version = mod_version
Expand Down Expand Up @@ -59,10 +60,10 @@ dependencies {

include modImplementation ("com.github.yundom:kache:$kache_version")

include modImplementation ("io.javalin:javalin:$javalin_version")
include modImplementation ("net.mcbrawls.inject:api:$inject_version")
include modImplementation ("net.mcbrawls.inject:javalin:$inject_version")
include modImplementation ("net.mcbrawls.inject:fabric:$inject_version")
include modImplementation ("net.mcbrawls.inject:javalin:$inject_version")
shadow modCompileOnly ("io.javalin:javalin:$javalin_version")

testImplementation sourceSets.main.output
}
Expand Down Expand Up @@ -98,6 +99,17 @@ jar {
}
}

shadowJar {
configurations = [ project.configurations.shadow ]
exclude("META-INF")
}

remapJar {
dependsOn(shadowJar)
mustRunAfter(shadowJar)
inputFile = file(shadowJar.archivePath)
}

publishing {
publications {
mavenJava(MavenPublication) {
Expand Down
1 change: 1 addition & 0 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,4 @@ mod_id=audience
kache_version=1.0.5
javalin_version=6.3.0
inject_version=3.0.0
shadow_version=9.0.0-beta4
1 change: 1 addition & 0 deletions settings.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ pluginManagement {

plugins {
id "org.jetbrains.kotlin.jvm" version kotlin_version
id "com.gradleup.shadow" version shadow_version
}
}

Expand Down

0 comments on commit d98e323

Please sign in to comment.