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

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