Skip to content

Commit

Permalink
build: remove TranslationLoader and shadowJar
Browse files Browse the repository at this point in the history
  • Loading branch information
Siroshun09 committed Mar 11, 2024
1 parent 74220af commit d77fd6b
Showing 1 changed file with 5 additions and 17 deletions.
22 changes: 5 additions & 17 deletions build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
plugins {
`java-library`
id("io.papermc.paperweight.userdev") version "1.5.11"
id("com.github.johnrengelman.shadow") version "8.1.1"
}

group = "com.github.siroshun09.biomefinder"
Expand All @@ -20,22 +19,16 @@ repositories {

dependencies {
paperweight.paperDevBundle("$mcVersion-R0.1-SNAPSHOT")
implementation("com.github.siroshun09.translationloader:translationloader:2.0.2")
}

tasks {
reobfJar {
outputJar.set(
project.layout.buildDirectory
.dir("libs")
.get()
.file("BiomeFinder-${fullVersion}.jar")
)
}

build {
dependsOn(reobfJar)
dependsOn(shadowJar)
doLast {
val jarFile = project.layout.buildDirectory.dir("libs").get().file("BiomeFinder-${fullVersion}.jar").asFile
jarFile.delete()
reobfJar.flatMap { it.outputJar.asFile }.get().copyTo(jarFile)
}
}

compileJava {
Expand All @@ -48,9 +41,4 @@ tasks {
expand("projectVersion" to fullVersion)
}
}

shadowJar {
minimize()
relocate("com.github.siroshun09.translationloader", "com.github.siroshun09.biomefinder.libs.translationloader")
}
}

0 comments on commit d77fd6b

Please sign in to comment.