Skip to content

Commit

Permalink
Add releasenotes to publications
Browse files Browse the repository at this point in the history
  • Loading branch information
TBlueF committed Nov 19, 2023
1 parent 73103ed commit deafe50
Show file tree
Hide file tree
Showing 14 changed files with 78 additions and 25 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
8 changes: 6 additions & 2 deletions implementations/fabric-1.15.2/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand All @@ -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")
Expand Down
8 changes: 6 additions & 2 deletions implementations/fabric-1.16.2/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand All @@ -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")
Expand Down
8 changes: 6 additions & 2 deletions implementations/fabric-1.17/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand All @@ -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")
Expand Down
8 changes: 6 additions & 2 deletions implementations/fabric-1.18/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand All @@ -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")
Expand Down
8 changes: 6 additions & 2 deletions implementations/fabric-1.19.4/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand All @@ -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")
Expand Down
8 changes: 6 additions & 2 deletions implementations/fabric-1.20/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand All @@ -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")
Expand Down
8 changes: 6 additions & 2 deletions implementations/forge-1.17.1/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
}
Expand All @@ -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"
Expand Down
8 changes: 6 additions & 2 deletions implementations/forge-1.18.1/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
}
Expand All @@ -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"
Expand Down
8 changes: 6 additions & 2 deletions implementations/forge-1.19.4/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
}
Expand All @@ -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"
Expand Down
8 changes: 6 additions & 2 deletions implementations/forge-1.20/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
}
Expand All @@ -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"
Expand Down
8 changes: 6 additions & 2 deletions implementations/paper/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand All @@ -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"))

Expand Down
4 changes: 3 additions & 1 deletion implementations/spigot/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down
9 changes: 7 additions & 2 deletions implementations/sponge/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand All @@ -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"))
}
}

0 comments on commit deafe50

Please sign in to comment.