diff --git a/buildSrc/src/main/kotlin/mod-build-script.gradle.kts b/buildSrc/src/main/kotlin/mod-build-script.gradle.kts index 8c1696d7..bdd0a9bf 100644 --- a/buildSrc/src/main/kotlin/mod-build-script.gradle.kts +++ b/buildSrc/src/main/kotlin/mod-build-script.gradle.kts @@ -37,6 +37,7 @@ data class FabricModConfiguration( val contact: Contact, val license: String, val icon: String? = null, + val custom: Custom? = null, ) { @Serializable data class Contact( @@ -51,12 +52,23 @@ data class FabricModConfiguration( val adapter: String, val value: String, ) + + @Serializable + data class Custom( + val modmenu: ModMenu? = null, + ) { + @Serializable + data class ModMenu( + val parent: String, + ) + } } val modName: String by extra val modEntrypoints: LinkedHashMap>? by extra(null) val modMixinFiles: List? by extra(null) val modDepends: LinkedHashMap? by extra(null) +val isModParent by extra(false) tasks { val modDotJsonTask = register("modDotJson") { @@ -83,7 +95,8 @@ tasks { "https://discord.gg/CJDUVuJ" ), "GPL-3.0-or-later", - if (project.name.endsWith("-all")) "assets/${project.name}/icon.png" else null + if (project.name.endsWith("-all")) "assets/${project.name}/icon.png" else null, + if (isModParent) null else FabricModConfiguration.Custom(FabricModConfiguration.Custom.ModMenu("fabrikmc-all")), ) val modDotJson = buildDir.resolve("resources/main/fabric.mod.json") diff --git a/buildSrc/src/main/kotlin/project-publish-script.gradle.kts b/buildSrc/src/main/kotlin/project-publish-script.gradle.kts index 6ffd2cff..a1577b81 100644 --- a/buildSrc/src/main/kotlin/project-publish-script.gradle.kts +++ b/buildSrc/src/main/kotlin/project-publish-script.gradle.kts @@ -45,8 +45,8 @@ publishing { licenses { license { - name.set("The Apache License, Version 2.0") - url.set("https://www.apache.org/licenses/LICENSE-2.0.txt") + name.set("GNU General Public License 3") + url.set("https://www.gnu.org/licenses/gpl-3.0.txt") } } diff --git a/fabrikmc-all/build.gradle.kts b/fabrikmc-all/build.gradle.kts index a2144bbc..367d8112 100644 --- a/fabrikmc-all/build.gradle.kts +++ b/fabrikmc-all/build.gradle.kts @@ -18,3 +18,4 @@ dependencies { } val modName by extra("$projectTitle (All modules)") +val isModParent by extra(true)