aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornea <nea@nea.moe>2023-08-27 15:46:57 +0200
committernea <nea@nea.moe>2023-08-27 15:46:57 +0200
commit57d4402c6091a11578fcfb18cdb325a116d85e3d (patch)
tree9b0fe77cfb13d313eda03b7540b4c5cd245355b9
parent8f2abee841a01427cea2268d89fb0c0bed86f963 (diff)
downloadFirmament-57d4402c6091a11578fcfb18cdb325a116d85e3d.tar.gz
Firmament-57d4402c6091a11578fcfb18cdb325a116d85e3d.tar.bz2
Firmament-57d4402c6091a11578fcfb18cdb325a116d85e3d.zip
Trim down jar
-rw-r--r--build.gradle.kts14
-rw-r--r--buildSrc/src/licenseinfo.kt2
2 files changed, 14 insertions, 2 deletions
diff --git a/build.gradle.kts b/build.gradle.kts
index 1103661..104df5a 100644
--- a/build.gradle.kts
+++ b/build.gradle.kts
@@ -69,7 +69,13 @@ repositories {
mavenLocal()
}
-val shadowMe by configurations.creating
+val shadowMe by configurations.creating {
+ exclude(group = "org.jetbrains.kotlin")
+ exclude(group = "org.jetbrains.kotlinx")
+ exclude(group = "org.jetbrains")
+ exclude(module = "gson")
+ exclude(group = "org.slf4j")
+}
val transInclude by configurations.creating {
exclude(group = "com.mojang")
exclude(group = "org.jetbrains.kotlin")
@@ -178,6 +184,11 @@ tasks.jar {
tasks.shadowJar {
configurations = listOf(shadowMe)
archiveClassifier.set("dev")
+ doLast {
+ configurations.forEach {
+ println("Copying files into jar: ${it.files}")
+ }
+ }
relocate("io.github.moulberry.repo", "moe.nea.firmament.deps.repo")
destinationDirectory.set(layout.buildDirectory.dir("badjars"))
}
@@ -199,6 +210,7 @@ tasks.processResources {
filesMatching("**/fabric.mod.json") {
expand(*replacements.toTypedArray())
}
+ exclude("**/*.license")
from(tasks.scanLicenses)
}
diff --git a/buildSrc/src/licenseinfo.kt b/buildSrc/src/licenseinfo.kt
index 85ef54c..50e4593 100644
--- a/buildSrc/src/licenseinfo.kt
+++ b/buildSrc/src/licenseinfo.kt
@@ -7,7 +7,7 @@ import moe.nea.licenseextractificator.LicenseExtension
fun LicenseExtension.addExtraLicenseMatchers() {
solo {
name = "Firmament"
- description = "A Hypixel Skyblock mod"
+ description = "A Hypixel SkyBlock mod"
developer("Linnea Gräf") {
webPresence = "https://nea.moe/"
}