diff --git a/build.gradle b/build.gradle index 0b9c4e23f..27a1cbff5 100644 --- a/build.gradle +++ b/build.gradle @@ -39,6 +39,9 @@ subprojects { p -> // We depend on fabric loader here to use the fabric @Environment annotations and get the mixin dependencies // Do NOT use other classes from fabric loader unless working with fabric modImplementation "net.fabricmc:fabric-loader:${rootProject.fabric_loader_version}" + + // Forge already comes with night config so dont implement it there + implementation("com.electronwill.night-config:toml:${rootProject.toml_version}") } diff --git a/common/build.gradle b/common/build.gradle index 3f3751086..c98cf17a3 100644 --- a/common/build.gradle +++ b/common/build.gradle @@ -26,8 +26,4 @@ publishing { repositories { // Add repositories to publish to here. } -} - -dependencies { - implementation("com.electronwill.night-config:toml:${rootProject.toml_version}") } \ No newline at end of file diff --git a/fabric/build.gradle b/fabric/build.gradle index 5a5b984ad..460bc7ef9 100644 --- a/fabric/build.gradle +++ b/fabric/build.gradle @@ -73,7 +73,6 @@ dependencies { // Toml - implementation("com.electronwill.night-config:toml:${rootProject.toml_version}") shadowMe("com.electronwill.night-config:toml:${rootProject.toml_version}") {} common(project(path: ":common", configuration: "namedElements")) { transitive false }