Skip to content

Commit

Permalink
Used shadow to shadow jars.
Browse files Browse the repository at this point in the history
  • Loading branch information
TexBlock committed Jul 22, 2024
1 parent d1281e8 commit afe7062
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 2 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
### Changelog

- **Used** shadow to shadow jars.
12 changes: 11 additions & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ plugins {
`maven-publish`
alias(libs.plugins.fabric.loom)
alias(libs.plugins.modpublisher)
alias(libs.plugins.shadow)
}

val display = libs.versions.display
Expand All @@ -30,7 +31,7 @@ dependencies {
modApi(libs.cloth.config)

api(libs.bundles.night.config)
include(libs.bundles.night.config)
shadow(libs.bundles.night.config)

// JUnit
testImplementation("org.junit.jupiter:junit-jupiter-api:5.8.1")
Expand All @@ -54,6 +55,15 @@ tasks {
}
}

shadowJar {
relocate("com.electronwill.nightconfig", "${libs.versions.maven.group.get()}.shadow.nightconfig")
archiveClassifier.set("dev-shadow")
}

remapJar {
dependsOn(shadowJar)
}

jar {
from("LICENSE")
}
Expand Down
4 changes: 3 additions & 1 deletion gradle/libs.versions.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[versions]
maven-group = "band.kessokuteatime"
archives-name = "nightautoconfig"
mod = "1.1.0-alpha.1"
mod = "1.1.0"
loader = "fabric"

minecraft = "1.21"
Expand All @@ -10,6 +10,7 @@ fabric-loader = "0.15.11"
fabric-api = "0.100.4+1.21"
fabric-loom = "1.6-SNAPSHOT"
modpublisher = "2.1.0"
shadow = "8.+"

cloth-config = "15.0.127"
night-config = "3.8.0"
Expand Down Expand Up @@ -40,6 +41,7 @@ night-config-yaml = { group = "com.electronwill.night-config", name = "yaml", ve
[plugins]
fabric-loom = { id = "fabric-loom", version.ref = "fabric-loom" }
modpublisher = { id = "com.hypherionmc.modutils.modpublisher", version.ref = "modpublisher" }
shadow = { id = "com.github.johnrengelman.shadow", version.ref = "shadow" }

[bundles]
fabric = ["fabric-loader", "fabric-api"]
Expand Down

0 comments on commit afe7062

Please sign in to comment.