Skip to content

Commit

Permalink
chore: remove hangar publish tasks
Browse files Browse the repository at this point in the history
  • Loading branch information
Chicken committed Apr 4, 2024
1 parent c634665 commit 18f15f8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 59 deletions.
30 changes: 1 addition & 29 deletions Authentication/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ plugins {
java
id ("com.github.johnrengelman.shadow") version "8.1.1"
id ("com.modrinth.minotaur") version "2.+"
id ("io.papermc.hangar-publish-plugin") version "0.0.5"
}

group = "codes.antti.auth"
Expand Down Expand Up @@ -82,37 +81,10 @@ modrinth {
"1.17", "1.17.1",
"1.18", "1.18.1", "1.18.2",
"1.19", "1.19.1", "1.19.2", "1.19.3", "1.19.4",
"1.20", "1.20.1"
"1.20", "1.20.1", "1.20.2", "1.20.3", "1.20.4",
)
}

hangarPublish {
publications.register("plugin") {
version.set(project.version as String)
namespace("Antti", "Authentication")
channel.set("Alpha")
changelog.set("View the changelog at [GitHub releases](https://github.com/Chicken/Auth/releases/tag/authentication-v${project.version})")
apiKey.set(System.getenv("HANGAR_TOKEN"))
platforms {
register(io.papermc.hangarpublishplugin.model.Platforms.PAPER) {
// url.set("https://github.com/Chicken/Auth/releases/download/authentication-v${project.version}/Authentication-${project.version}.jar")
jar.set(tasks.shadowJar.flatMap { it.archiveFile })
platformVersions.set(listOf(
"1.13.2",
"1.14", "1.14.1", "1.14.2", "1.14.3", "1.14.4",
"1.15", "1.15.1", "1.15.2",
"1.16", "1.16.1", "1.16.2", "1.16.3", "1.16.4", "1.16.5",
"1.17", "1.17.1",
"1.18", "1.18.1", "1.18.2",
"1.19", "1.19.1", "1.19.2", "1.19.3", "1.19.4",
"1.20", "1.20.1"
))
}
}
}
}

tasks.register("publish") {
dependsOn("modrinth")
dependsOn("publishPluginPublicationToHangar")
}
31 changes: 1 addition & 30 deletions Authorization/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ plugins {
java
id ("com.github.johnrengelman.shadow") version "8.1.1"
id ("com.modrinth.minotaur") version "2.+"
id ("io.papermc.hangar-publish-plugin") version "0.0.5"
}

group = "codes.antti.auth"
Expand Down Expand Up @@ -81,38 +80,10 @@ modrinth {
"1.17", "1.17.1",
"1.18", "1.18.1", "1.18.2",
"1.19", "1.19.1", "1.19.2", "1.19.3", "1.19.4",
"1.20", "1.20.1"
"1.20", "1.20.1", "1.20.2", "1.20.3", "1.20.4",
)
}

hangarPublish {
publications.register("plugin") {
version.set(project.version as String)
namespace("Antti", "Authorization")
channel.set("Alpha")
changelog.set("View the changelog at [GitHub releases](https://github.com/Chicken/Auth/releases/tag/authorization-v${project.version})")
apiKey.set(System.getenv("HANGAR_TOKEN"))
platforms {
register(io.papermc.hangarpublishplugin.model.Platforms.PAPER) {
// url.set("https://github.com/Chicken/Auth/releases/download/authorization-v${project.version}/Authorization-${project.version}.jar")
jar.set(tasks.shadowJar.flatMap { it.archiveFile })
dependencies.url("LuckPerms", "https://luckperms.net/")
platformVersions.set(listOf(
"1.13.2",
"1.14", "1.14.1", "1.14.2", "1.14.3", "1.14.4",
"1.15", "1.15.1", "1.15.2",
"1.16", "1.16.1", "1.16.2", "1.16.3", "1.16.4", "1.16.5",
"1.17", "1.17.1",
"1.18", "1.18.1", "1.18.2",
"1.19", "1.19.1", "1.19.2", "1.19.3", "1.19.4",
"1.20", "1.20.1"
))
}
}
}
}

tasks.register("publish") {
dependsOn("modrinth")
dependsOn("publishPluginPublicationToHangar")
}

0 comments on commit 18f15f8

Please sign in to comment.