From 1ea57b1a230115764d41f05df124e9a23da83214 Mon Sep 17 00:00:00 2001 From: Martin Prokoph Date: Sun, 23 Nov 2025 13:47:17 +0100 Subject: [PATCH] release: MidnightLib 1.9.0 here we go! --- CHANGELOG.md | 11 +++++++++++ build.gradle.kts | 44 ++++++++++++++++---------------------------- gradle.properties | 2 +- 3 files changed, 28 insertions(+), 29 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index e69de29..510aa06 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -0,0 +1,11 @@ +# MidnightLib v1.9.0 +- Setup a **multiversion** build environment + - MidnightLib will now always be up-to-date on all relevant versions of Minecraft + (Fabric/Forge 1.20.1; Fabric/NeoForge 1.21.1, 1.21.5, 1.21.8, 1.21.10) + - Measures were taken to ensure this doesn't break mods targeting old MidnightLib versions. + In case you still find a broken mod, please [report it](https://github.com/TeamMidnightDust/MidnightLib/issues/new/choose) and tag the issue with `1.9.0`. +- New logo! This offers improved visibility on light themes and a more modern, fresh look. +- Added JavaDocs to improve the developer experience. + - To be able to view them, adjust your midnightlib gradle dependency by following the [wiki](https://midnightdust.eu/wiki/midnightlib). +- Reduced jar size – now under 60KB again for Fabric builds :) +- Migrate to Mojang mappings in preparation for upcoming non-obfuscated releases \ No newline at end of file diff --git a/build.gradle.kts b/build.gradle.kts index 952fdf2..a840663 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -62,12 +62,15 @@ publishMods { file = project.tasks.remapJar.get().archiveFile dryRun = modrinthToken == null || curseforgeToken == null - displayName = "${mod.name} ${loader.replaceFirstChar { it.uppercase() }} ${property("mod.mc_title")}-${mod.version}" - version = mod.version + displayName = "${mod.name} ${mod.version} - ${loader.replaceFirstChar { it.uppercase() }} ${property("mod.mc_title")}" + version = "${mod.version}+${property("mod.mc_title")}-${loader}" changelog = rootProject.file("CHANGELOG.md").readText() - type = BETA + type = STABLE modLoaders.add(loader) + if (loader == "fabric") { + modLoaders.add("quilt") + } val targets = property("mod.mc_targets").toString().split(' ') modrinth { @@ -76,7 +79,6 @@ publishMods { targets.forEach(minecraftVersions::add) if (loader == "fabric") { requires("fabric-api") - optional("modmenu") } } @@ -86,39 +88,25 @@ publishMods { targets.forEach(minecraftVersions::add) if (loader == "fabric") { requires("fabric-api") - optional("modmenu") } } - github { - accessToken = githubToken - repository = "TeamMidnightDust/MidnightLib" - commitish = "multiversion" // This is the branch the release tag will be created from - - tagName = "v" + properties["mod.version"] - - // Allow the release to be initially created without any files. - allowEmptyFiles = true - } -} -//publishing { -// publications { -// create("mavenJava") { -// pom { -// groupId = "eu.midnightdust" -// artifactId = "midnightlib" -// version = project.version +// github { +// accessToken = githubToken +// repository = "TeamMidnightDust/MidnightLib" +// commitish = "multiversion" // This is the branch the release tag will be created from // -// from(components["java"]) -// } -// } +// tagName = "v" + properties["mod.version"] +// +// // Allow the release to be initially created without any files. +// allowEmptyFiles = true // } -//} +} publishing { repositories { maven { name = "MidnightDust" - url = uri("https://maven.midnightdust.eu/snapshots") + url = uri("https://maven.midnightdust.eu/releases") credentials(PasswordCredentials::class) } } diff --git a/gradle.properties b/gradle.properties index 6b18030..e370a1d 100644 --- a/gradle.properties +++ b/gradle.properties @@ -7,7 +7,7 @@ org.gradle.parallel=false #org.gradle.configureondemand=true # Mod properties -mod.version=1.9.0-beta.3 +mod.version=1.9.0 mod.group=eu.midnightdust mod.id=midnightlib mod.name=MidnightLib