Trim down jar
This commit is contained in:
@@ -69,7 +69,13 @@ repositories {
|
|||||||
mavenLocal()
|
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 {
|
val transInclude by configurations.creating {
|
||||||
exclude(group = "com.mojang")
|
exclude(group = "com.mojang")
|
||||||
exclude(group = "org.jetbrains.kotlin")
|
exclude(group = "org.jetbrains.kotlin")
|
||||||
@@ -178,6 +184,11 @@ tasks.jar {
|
|||||||
tasks.shadowJar {
|
tasks.shadowJar {
|
||||||
configurations = listOf(shadowMe)
|
configurations = listOf(shadowMe)
|
||||||
archiveClassifier.set("dev")
|
archiveClassifier.set("dev")
|
||||||
|
doLast {
|
||||||
|
configurations.forEach {
|
||||||
|
println("Copying files into jar: ${it.files}")
|
||||||
|
}
|
||||||
|
}
|
||||||
relocate("io.github.moulberry.repo", "moe.nea.firmament.deps.repo")
|
relocate("io.github.moulberry.repo", "moe.nea.firmament.deps.repo")
|
||||||
destinationDirectory.set(layout.buildDirectory.dir("badjars"))
|
destinationDirectory.set(layout.buildDirectory.dir("badjars"))
|
||||||
}
|
}
|
||||||
@@ -199,6 +210,7 @@ tasks.processResources {
|
|||||||
filesMatching("**/fabric.mod.json") {
|
filesMatching("**/fabric.mod.json") {
|
||||||
expand(*replacements.toTypedArray())
|
expand(*replacements.toTypedArray())
|
||||||
}
|
}
|
||||||
|
exclude("**/*.license")
|
||||||
from(tasks.scanLicenses)
|
from(tasks.scanLicenses)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ import moe.nea.licenseextractificator.LicenseExtension
|
|||||||
fun LicenseExtension.addExtraLicenseMatchers() {
|
fun LicenseExtension.addExtraLicenseMatchers() {
|
||||||
solo {
|
solo {
|
||||||
name = "Firmament"
|
name = "Firmament"
|
||||||
description = "A Hypixel Skyblock mod"
|
description = "A Hypixel SkyBlock mod"
|
||||||
developer("Linnea Gräf") {
|
developer("Linnea Gräf") {
|
||||||
webPresence = "https://nea.moe/"
|
webPresence = "https://nea.moe/"
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user