Merge PR #568 (Wyck) from OakLoaf

This commit is contained in:
Zoe Gidiere committed 2026-11-07 15:57:40 -07:00
commit 12a5c8b1f5
60 files changed
+646 -1798

No files matched your search

@@ -1,5 +1,4 @@
import com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar
import io.papermc.paperweight.util.path
import java.io.File
import java.io.FileWriter
import java.net.URL
@@ -81,7 +80,7 @@ fun Project.configureDistribution() {
doLast {
// https://github.com/johnrengelman/shadow/issues/111
val dest = tasks.named<ShadowJar>("shadowJar").get().archiveFile.get().path
val dest = tasks.named<ShadowJar>("shadowJar").get().archiveFile.get().asFile.toPath()
installAddonsInto(dest)
}
}
@@ -91,7 +90,7 @@ fun Project.configureDistribution() {
dependsOn(compileAddons)
doLast {
val dest = tasks.named<Jar>("jar").get().archiveFile.get().path
val dest = tasks.named<Jar>("jar").get().archiveFile.get().asFile.toPath()
installAddonsInto(dest)
}
}
@@ -161,7 +160,7 @@ fun Project.configureDistribution() {
tasks.named<ShadowJar>("shadowJar") {
// Tell shadow to download the packs
dependsOn(downloadDefaultPacks)
configurations = listOf(project.configurations["shaded"])
configurations.set(listOf(project.configurations["shaded"]))
archiveClassifier.set("shaded")
version = project.version
relocate("org.apache.commons", "com.dfsek.terra.lib.commons")