mirror of
https://github.com/PolyhedralDev/Terra.git
synced 2026-12-01 18:34:14 +00:00
Merge PR #568 (Wyck) from OakLoaf
This commit is contained in:
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")
|
||||
|
||||
Reference in new issue
Block a user