Skip to content

Commit 0f3a793

Browse files
committed
Retire Hangar publishing and update CF versions
Signed-off-by: Alexander Brandes <mc.cache@web.de>
1 parent 309e1e9 commit 0f3a793

4 files changed

Lines changed: 3 additions & 31 deletions

File tree

.github/workflows/announce-release-on-discord.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ jobs:
2222
""
2323
"The primary download is available at: Modrinth: <https://modrinth.com/plugin/fastasyncvoxelsniper/version/${{ github.event.release.tag_name }}>"
2424
""
25-
"Alternative downloads are available at:"
26-
"- CurseForge: <https://www.curseforge.com/minecraft/bukkit-plugins/favs>"
27-
"- Hangar: <https://hangar.papermc.io/IntellectualSites/FastAsyncVoxelSniper/versions/${{ github.event.release.tag_name }}>"
25+
"Alternative downloads are available at CurseForge:"
26+
"<https://www.curseforge.com/minecraft/bukkit-plugins/favs>"
2827

.github/workflows/upload-release-assets-.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ jobs:
2020
run: ./gradlew clean build modrinth
2121
env:
2222
MODRINTH_TOKEN: ${{ secrets.MODRINTH_TOKEN }}
23-
HANGAR_TOKEN: ${{ secrets.HANGAR_TOKEN }}
2423
- name: Upload Release Assets
2524
if: always()
2625
uses: AButler/upload-release-assets@v4.0.0
@@ -36,7 +35,7 @@ jobs:
3635
# https://minecraft.curseforge.com/api/game/versions?token=redacted
3736
# We have a public version on https://github.com/IntellectualSites/CurseForge-version-identifier
3837
# gameVersionTypeID: 1
39-
game_versions: "11163,12281,12934"
38+
game_versions: "11779,12281,12934,13422,13506,13620,13927,13964,14406,15933,16021,16082"
4039
project_id: 454430
4140
game_endpoint: minecraft
4241
token: ${{ secrets.CURSEFORGE_TOKEN }}

build.gradle.kts

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import groovy.json.JsonSlurper
22
import java.net.URI
3-
import io.papermc.hangarpublishplugin.model.Platforms
43
import xyz.jpenilla.runpaper.task.RunServer
54

65
plugins {
@@ -12,7 +11,6 @@ plugins {
1211
alias(libs.plugins.shadow)
1312
alias(libs.plugins.publish)
1413
alias(libs.plugins.minotaur)
15-
alias(libs.plugins.hangar)
1614
alias(libs.plugins.runPaper)
1715
}
1816

@@ -203,28 +201,6 @@ modrinth {
203201
".com/IntellectualSites/fastasyncvoxelsniper/releases/tag/${project.version}")
204202
}
205203

206-
hangarPublish {
207-
publications.register("plugin") {
208-
version.set(project.version as String)
209-
id.set("FastAsyncVoxelSniper")
210-
channel.set("Release")
211-
changelog.set("The changelog is available on GitHub: https://github" +
212-
".com/IntellectualSites/fastasyncvoxelsniper/releases/tag/${project.version}")
213-
apiKey.set(System.getenv("HANGAR_TOKEN"))
214-
platforms {
215-
register(Platforms.PAPER) {
216-
jar.set(file("build/libs/${rootProject.name}-${project.version}.jar"))
217-
platformVersions.set(supportedVersions)
218-
this.dependencies {
219-
hangar("FastAsyncWorldEdit") {
220-
required.set(true)
221-
}
222-
}
223-
}
224-
}
225-
}
226-
}
227-
228204
tasks {
229205
register("cacheLatestFaweArtifact") {
230206
val lastSuccessfulBuildUrl = uri("https://ci.athion.net/job/FastAsyncWorldEdit/lastSuccessfulBuild/api/json").toURL()

gradle/libs.versions.toml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ shadow = "9.4.1"
1010
pluginyml = "0.6.0"
1111
publish = "0.36.0"
1212
minotaur = "2.9.0"
13-
hangar = "0.1.4"
1413
runPaper = "3.0.2"
1514
paperApi = "1.21.4-R0.1-SNAPSHOT"
1615

@@ -33,5 +32,4 @@ shadow = { id = "com.gradleup.shadow", version.ref = "shadow" }
3332
pluginyml = { id = "net.minecrell.plugin-yml.bukkit", version.ref = "pluginyml" }
3433
publish = { id = "com.vanniktech.maven.publish", version.ref = "publish" }
3534
minotaur = { id = "com.modrinth.minotaur", version.ref = "minotaur" }
36-
hangar = { id = "io.papermc.hangar-publish-plugin", version.ref = "hangar" }
3735
runPaper = { id = "xyz.jpenilla.run-paper", version.ref = "runPaper" }

0 commit comments

Comments
 (0)