Add releasenotes to publications

This commit is contained in:
Lukas Rieger (Blue) 2023-11-19 16:00:46 +01:00
parent 73103eda3b
commit deafe50305
No known key found for this signature in database
GPG Key ID: 2D09EC5ED2687FF2
14 changed files with 78 additions and 25 deletions

2
.gitignore vendored
View File

@ -14,6 +14,8 @@ node_modules/
*.launch
release.md
# exclude generated resource
BlueMapCommon/src/main/resources/de/bluecolored/bluemap/webapp.zip
BlueMapCore/src/main/resources/de/bluecolored/bluemap/*/resourceExtensions.zip

View File

@ -140,7 +140,9 @@ modrinth {
token.set(System.getenv("MODRINTH_TOKEN"))
projectId.set("swbUV1cr")
versionNumber.set("${project.version}-${project.name}")
changelog.set("Releasenotes and Changelog:\nhttps://github.com/BlueMap-Minecraft/BlueMap/releases/tag/v${project.version}")
changelog.set(file("../../release.md")
.readText()
.replace("{version}", project.version.toString()))
uploadFile.set(tasks.findByName("remappedShadowJar"))
gameVersions.addAll("1.15.2")
dependencies {
@ -153,7 +155,9 @@ curseforge {
project(closureOf<CurseProject> {
id = "406463"
changelogType = "markdown"
changelog = "**Releasenotes and Changelog:**\n\nhttps://github.com/BlueMap-Minecraft/BlueMap/releases/tag/v${project.version}"
changelog = file("../../release.md")
.readText()
.replace("{version}", project.version.toString())
releaseType = "release"
addGameVersion("Fabric")

View File

@ -140,7 +140,9 @@ modrinth {
token.set(System.getenv("MODRINTH_TOKEN"))
projectId.set("swbUV1cr")
versionNumber.set("${project.version}-${project.name}")
changelog.set("Releasenotes and Changelog:\nhttps://github.com/BlueMap-Minecraft/BlueMap/releases/tag/v${project.version}")
changelog.set(file("../../release.md")
.readText()
.replace("{version}", project.version.toString()))
uploadFile.set(tasks.findByName("remappedShadowJar"))
gameVersions.addAll("1.16.2", "1.16.3", "1.16.4", "1.16.5")
dependencies {
@ -153,7 +155,9 @@ curseforge {
project(closureOf<CurseProject> {
id = "406463"
changelogType = "markdown"
changelog = "**Releasenotes and Changelog:**\n\nhttps://github.com/BlueMap-Minecraft/BlueMap/releases/tag/v${project.version}"
changelog = file("../../release.md")
.readText()
.replace("{version}", project.version.toString())
releaseType = "release"
addGameVersion("Fabric")

View File

@ -140,7 +140,9 @@ modrinth {
token.set(System.getenv("MODRINTH_TOKEN"))
projectId.set("swbUV1cr")
versionNumber.set("${project.version}-${project.name}")
changelog.set("Releasenotes and Changelog:\nhttps://github.com/BlueMap-Minecraft/BlueMap/releases/tag/v${project.version}")
changelog.set(file("../../release.md")
.readText()
.replace("{version}", project.version.toString()))
uploadFile.set(tasks.findByName("remappedShadowJar"))
gameVersions.addAll("1.17", "1.17.1")
dependencies {
@ -153,7 +155,9 @@ curseforge {
project(closureOf<CurseProject> {
id = "406463"
changelogType = "markdown"
changelog = "**Releasenotes and Changelog:**\n\nhttps://github.com/BlueMap-Minecraft/BlueMap/releases/tag/v${project.version}"
changelog = file("../../release.md")
.readText()
.replace("{version}", project.version.toString())
releaseType = "release"
addGameVersion("Fabric")

View File

@ -140,7 +140,9 @@ modrinth {
token.set(System.getenv("MODRINTH_TOKEN"))
projectId.set("swbUV1cr")
versionNumber.set("${project.version}-${project.name}")
changelog.set("Releasenotes and Changelog:\nhttps://github.com/BlueMap-Minecraft/BlueMap/releases/tag/v${project.version}")
changelog.set(file("../../release.md")
.readText()
.replace("{version}", project.version.toString()))
uploadFile.set(tasks.findByName("remappedShadowJar"))
gameVersions.addAll("1.18", "1.18.1", "1.18.2")
dependencies {
@ -153,7 +155,9 @@ curseforge {
project(closureOf<CurseProject> {
id = "406463"
changelogType = "markdown"
changelog = "**Releasenotes and Changelog:**\n\nhttps://github.com/BlueMap-Minecraft/BlueMap/releases/tag/v${project.version}"
changelog = file("../../release.md")
.readText()
.replace("{version}", project.version.toString())
releaseType = "release"
addGameVersion("Fabric")

View File

@ -140,7 +140,9 @@ modrinth {
token.set(System.getenv("MODRINTH_TOKEN"))
projectId.set("swbUV1cr")
versionNumber.set("${project.version}-${project.name}")
changelog.set("Releasenotes and Changelog:\nhttps://github.com/BlueMap-Minecraft/BlueMap/releases/tag/v${project.version}")
changelog.set(file("../../release.md")
.readText()
.replace("{version}", project.version.toString()))
uploadFile.set(tasks.findByName("remappedShadowJar"))
gameVersions.addAll("1.19.4")
dependencies {
@ -153,7 +155,9 @@ curseforge {
project(closureOf<CurseProject> {
id = "406463"
changelogType = "markdown"
changelog = "**Releasenotes and Changelog:**\n\nhttps://github.com/BlueMap-Minecraft/BlueMap/releases/tag/v${project.version}"
changelog = file("../../release.md")
.readText()
.replace("{version}", project.version.toString())
releaseType = "release"
addGameVersion("Fabric")

View File

@ -140,7 +140,9 @@ modrinth {
token.set(System.getenv("MODRINTH_TOKEN"))
projectId.set("swbUV1cr")
versionNumber.set("${project.version}-${project.name}")
changelog.set("Releasenotes and Changelog:\nhttps://github.com/BlueMap-Minecraft/BlueMap/releases/tag/v${project.version}")
changelog.set(file("../../release.md")
.readText()
.replace("{version}", project.version.toString()))
uploadFile.set(tasks.findByName("remappedShadowJar"))
gameVersions.addAll("1.20", "1.20.1", "1.20.2")
dependencies {
@ -153,7 +155,9 @@ curseforge {
project(closureOf<CurseProject> {
id = "406463"
changelogType = "markdown"
changelog = "**Releasenotes and Changelog:**\n\nhttps://github.com/BlueMap-Minecraft/BlueMap/releases/tag/v${project.version}"
changelog = file("../../release.md")
.readText()
.replace("{version}", project.version.toString())
releaseType = "release"
addGameVersion("Fabric")

View File

@ -177,7 +177,9 @@ modrinth {
token = System.getenv("MODRINTH_TOKEN")
projectId = "swbUV1cr"
versionNumber = "${project.version}-${project.name}"
changelog = "Releasenotes and Changelog:\nhttps://github.com/BlueMap-Minecraft/BlueMap/releases/tag/v${project.version}"
changelog = file("../../release.md")
.getText()
.replace("{version}", project.version.toString())
uploadFile = shadowJar
gameVersions = ["1.17.1"]
}
@ -187,7 +189,9 @@ curseforge {
project {
id = "406463"
changelogType = "markdown"
changelog = "**Releasenotes and Changelog:**\n\nhttps://github.com/BlueMap-Minecraft/BlueMap/releases/tag/v${project.version}"
changelog = file("../../release.md")
.getText()
.replace("{version}", project.version.toString())
releaseType = "release"
addGameVersion "Forge"

View File

@ -173,7 +173,9 @@ modrinth {
token = System.getenv("MODRINTH_TOKEN")
projectId = "swbUV1cr"
versionNumber = "${project.version}-${project.name}"
changelog = "Releasenotes and Changelog:\nhttps://github.com/BlueMap-Minecraft/BlueMap/releases/tag/v${project.version}"
changelog = file("../../release.md")
.getText()
.replace("{version}", project.version.toString())
uploadFile = shadowJar
gameVersions = ["1.18.1", "1.18.2"]
}
@ -183,7 +185,9 @@ curseforge {
project {
id = "406463"
changelogType = "markdown"
changelog = "**Releasenotes and Changelog:**\n\nhttps://github.com/BlueMap-Minecraft/BlueMap/releases/tag/v${project.version}"
changelog = file("../../release.md")
.getText()
.replace("{version}", project.version.toString())
releaseType = "release"
addGameVersion "Forge"

View File

@ -173,7 +173,9 @@ modrinth {
token = System.getenv("MODRINTH_TOKEN")
projectId = "swbUV1cr"
versionNumber = "${project.version}-${project.name}"
changelog = "Releasenotes and Changelog:\nhttps://github.com/BlueMap-Minecraft/BlueMap/releases/tag/v${project.version}"
changelog = file("../../release.md")
.getText()
.replace("{version}", project.version.toString())
uploadFile = shadowJar
gameVersions = ["1.19.4"]
}
@ -183,7 +185,9 @@ curseforge {
project {
id = "406463"
changelogType = "markdown"
changelog = "**Releasenotes and Changelog:**\n\nhttps://github.com/BlueMap-Minecraft/BlueMap/releases/tag/v${project.version}"
changelog = file("../../release.md")
.getText()
.replace("{version}", project.version.toString())
releaseType = "release"
addGameVersion "Forge"

View File

@ -173,7 +173,9 @@ modrinth {
token = System.getenv("MODRINTH_TOKEN")
projectId = "swbUV1cr"
versionNumber = "${project.version}-${project.name}"
changelog = "Releasenotes and Changelog:\nhttps://github.com/BlueMap-Minecraft/BlueMap/releases/tag/v${project.version}"
changelog = file("../../release.md")
.getText()
.replace("{version}", project.version.toString())
uploadFile = shadowJar
gameVersions = ["1.20", "1.20.1", "1.20.2"]
}
@ -183,7 +185,9 @@ curseforge {
project {
id = "406463"
changelogType = "markdown"
changelog = "**Releasenotes and Changelog:**\n\nhttps://github.com/BlueMap-Minecraft/BlueMap/releases/tag/v${project.version}"
changelog = file("../../release.md")
.getText()
.replace("{version}", project.version.toString())
releaseType = "release"
addGameVersion "Forge"

View File

@ -119,7 +119,9 @@ modrinth {
token.set(System.getenv("MODRINTH_TOKEN"))
projectId.set("swbUV1cr")
versionNumber.set("${project.version}-${project.name}")
changelog.set("Releasenotes and Changelog: \nhttps://github.com/BlueMap-Minecraft/BlueMap/releases/tag/v${project.version}")
changelog.set(file("../../release.md")
.readText()
.replace("{version}", project.version.toString()))
uploadFile.set(tasks.findByName("shadowJar"))
loaders.addAll("paper","purpur","folia")
gameVersions.addAll(
@ -132,7 +134,9 @@ hangarPublish {
version.set(project.version as String)
id.set("BlueMap")
channel.set("Release")
changelog.set("Releasenotes and Changelog: \nhttps://github.com/BlueMap-Minecraft/BlueMap/releases/tag/v${project.version}")
changelog.set(file("../../release.md")
.readText()
.replace("{version}", project.version.toString()))
apiKey.set(System.getenv("HANGAR_TOKEN"))

View File

@ -121,7 +121,9 @@ modrinth {
token.set(System.getenv("MODRINTH_TOKEN"))
projectId.set("swbUV1cr")
versionNumber.set("${project.version}-${project.name}")
changelog.set("Releasenotes and Changelog: \nhttps://github.com/BlueMap-Minecraft/BlueMap/releases/tag/v${project.version}")
changelog.set(file("../../release.md")
.readText()
.replace("{version}", project.version.toString()))
uploadFile.set(tasks.findByName("shadowJar"))
loaders.addAll("spigot", "paper", "purpur")
gameVersions.addAll(

View File

@ -135,7 +135,9 @@ modrinth {
token.set(System.getenv("MODRINTH_TOKEN"))
projectId.set("swbUV1cr")
versionNumber.set("${project.version}-${project.name}")
changelog.set("Releasenotes and Changelog:\nhttps://github.com/BlueMap-Minecraft/BlueMap/releases/tag/v${project.version}")
changelog.set(file("../../release.md")
.readText()
.replace("{version}", project.version.toString()))
uploadFile.set(tasks.findByName("shadowJar"))
loaders.addAll("sponge")
gameVersions.addAll("1.16.5")
@ -150,7 +152,10 @@ oreDeployment {
apiKey(System.getenv("ORE_TOKEN"))
defaultPublication {
projectId.set("BlueMap")
versionBody.set("Releasenotes and Changelog:\nhttps://github.com/BlueMap-Minecraft/BlueMap/releases/tag/v${project.version}")
createForumPost.set(true)
versionBody.set(file("../../release.md")
.readText()
.replace("{version}", project.version.toString()))
publishArtifacts.setFrom(tasks.findByName("shadowJar"))
}
}