release: MidnightLib 1.9.0

here we go!
This commit is contained in:
Martin Prokoph
2025-11-23 13:47:17 +01:00
parent 312096d989
commit 1ea57b1a23
3 changed files with 28 additions and 29 deletions

View File

@@ -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

View File

@@ -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<MavenPublication>("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)
}
}

View File

@@ -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