mirror of
https://github.com/FancyInnovations/FancyPlugins.git
synced 2025-12-06 07:43:36 +00:00
Remove publishing to hangar and modrinth via gradle plugins
This commit is contained in:
@@ -3,8 +3,6 @@ plugins {
|
|||||||
id("io.papermc.paperweight.userdev") version "2.0.0-beta.17" apply false
|
id("io.papermc.paperweight.userdev") version "2.0.0-beta.17" apply false
|
||||||
id("xyz.jpenilla.run-paper") version "2.3.1" apply false
|
id("xyz.jpenilla.run-paper") version "2.3.1" apply false
|
||||||
id("de.eldoria.plugin-yml.paper") version "0.7.1" apply false
|
id("de.eldoria.plugin-yml.paper") version "0.7.1" apply false
|
||||||
id("io.papermc.hangar-publish-plugin") version "0.1.3" apply false
|
|
||||||
id("com.modrinth.minotaur") version "2.+" apply false
|
|
||||||
}
|
}
|
||||||
|
|
||||||
allprojects {
|
allprojects {
|
||||||
|
|||||||
@@ -8,8 +8,6 @@ plugins {
|
|||||||
id("xyz.jpenilla.run-paper")
|
id("xyz.jpenilla.run-paper")
|
||||||
id("com.gradleup.shadow")
|
id("com.gradleup.shadow")
|
||||||
id("de.eldoria.plugin-yml.paper")
|
id("de.eldoria.plugin-yml.paper")
|
||||||
id("io.papermc.hangar-publish-plugin")
|
|
||||||
id("com.modrinth.minotaur")
|
|
||||||
}
|
}
|
||||||
|
|
||||||
runPaper.folia.registerTask()
|
runPaper.folia.registerTask()
|
||||||
@@ -139,14 +137,6 @@ tasks {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
tasks.publishAllPublicationsToHangar {
|
|
||||||
dependsOn("shadowJar")
|
|
||||||
}
|
|
||||||
|
|
||||||
tasks.modrinth {
|
|
||||||
dependsOn("shadowJar")
|
|
||||||
}
|
|
||||||
|
|
||||||
java {
|
java {
|
||||||
toolchain.languageVersion.set(JavaLanguageVersion.of(21))
|
toolchain.languageVersion.set(JavaLanguageVersion.of(21))
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -8,33 +8,10 @@ plugins {
|
|||||||
id("xyz.jpenilla.run-paper")
|
id("xyz.jpenilla.run-paper")
|
||||||
id("com.gradleup.shadow")
|
id("com.gradleup.shadow")
|
||||||
id("de.eldoria.plugin-yml.paper")
|
id("de.eldoria.plugin-yml.paper")
|
||||||
id("io.papermc.hangar-publish-plugin")
|
|
||||||
id("com.modrinth.minotaur")
|
|
||||||
}
|
}
|
||||||
|
|
||||||
runPaper.folia.registerTask()
|
runPaper.folia.registerTask()
|
||||||
|
|
||||||
val supportedVersions =
|
|
||||||
listOf(
|
|
||||||
"1.19.4",
|
|
||||||
"1.20",
|
|
||||||
"1.20.1",
|
|
||||||
"1.20.2",
|
|
||||||
"1.20.3",
|
|
||||||
"1.20.4",
|
|
||||||
"1.20.5",
|
|
||||||
"1.20.6",
|
|
||||||
"1.21",
|
|
||||||
"1.21.1",
|
|
||||||
"1.21.2",
|
|
||||||
"1.21.3",
|
|
||||||
"1.21.4",
|
|
||||||
"1.21.5",
|
|
||||||
"1.21.6",
|
|
||||||
"1.21.7",
|
|
||||||
"1.21.8",
|
|
||||||
)
|
|
||||||
|
|
||||||
allprojects {
|
allprojects {
|
||||||
group = "de.oliver"
|
group = "de.oliver"
|
||||||
version = getFHVersion()
|
version = getFHVersion()
|
||||||
@@ -167,14 +144,6 @@ tasks {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
tasks.publishAllPublicationsToHangar {
|
|
||||||
dependsOn("shadowJar")
|
|
||||||
}
|
|
||||||
|
|
||||||
tasks.modrinth {
|
|
||||||
dependsOn("shadowJar")
|
|
||||||
}
|
|
||||||
|
|
||||||
java {
|
java {
|
||||||
toolchain.languageVersion.set(JavaLanguageVersion.of(21))
|
toolchain.languageVersion.set(JavaLanguageVersion.of(21))
|
||||||
}
|
}
|
||||||
@@ -190,34 +159,3 @@ val gitCommitMessage: Provider<String> = providers.exec {
|
|||||||
fun getFHVersion(): String {
|
fun getFHVersion(): String {
|
||||||
return file("VERSION").readText()
|
return file("VERSION").readText()
|
||||||
}
|
}
|
||||||
|
|
||||||
hangarPublish {
|
|
||||||
publications.register("plugin") {
|
|
||||||
version = project.version as String
|
|
||||||
id = "FancyHolograms"
|
|
||||||
channel = "Alpha"
|
|
||||||
|
|
||||||
apiKey.set(System.getenv("HANGAR_PUBLISH_API_TOKEN"))
|
|
||||||
|
|
||||||
platforms {
|
|
||||||
paper {
|
|
||||||
jar = tasks.shadowJar.flatMap { it.archiveFile }
|
|
||||||
platformVersions = supportedVersions
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
changelog = gitCommitMessage.get()
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
modrinth {
|
|
||||||
token.set(System.getenv("MODRINTH_PUBLISH_API_TOKEN"))
|
|
||||||
projectId.set("fancyholograms")
|
|
||||||
versionNumber.set(getFHVersion())
|
|
||||||
versionType.set("alpha")
|
|
||||||
uploadFile.set(file("build/libs/${project.name}-${getFHVersion()}.jar"))
|
|
||||||
gameVersions.addAll(supportedVersions)
|
|
||||||
loaders.add("paper")
|
|
||||||
loaders.add("folia")
|
|
||||||
changelog.set(gitCommitMessage.get())
|
|
||||||
}
|
|
||||||
@@ -8,27 +8,10 @@ plugins {
|
|||||||
id("xyz.jpenilla.run-paper")
|
id("xyz.jpenilla.run-paper")
|
||||||
id("com.gradleup.shadow")
|
id("com.gradleup.shadow")
|
||||||
id("de.eldoria.plugin-yml.paper")
|
id("de.eldoria.plugin-yml.paper")
|
||||||
id("io.papermc.hangar-publish-plugin")
|
|
||||||
id("com.modrinth.minotaur")
|
|
||||||
}
|
}
|
||||||
|
|
||||||
runPaper.folia.registerTask()
|
runPaper.folia.registerTask()
|
||||||
|
|
||||||
val supportedVersions =
|
|
||||||
listOf(
|
|
||||||
"1.20.5",
|
|
||||||
"1.20.6",
|
|
||||||
"1.21",
|
|
||||||
"1.21.1",
|
|
||||||
"1.21.2",
|
|
||||||
"1.21.3",
|
|
||||||
"1.21.4",
|
|
||||||
"1.21.5",
|
|
||||||
"1.21.6",
|
|
||||||
"1.21.7",
|
|
||||||
"1.21.8",
|
|
||||||
)
|
|
||||||
|
|
||||||
allprojects {
|
allprojects {
|
||||||
group = "de.oliver"
|
group = "de.oliver"
|
||||||
version = getFHVersion()
|
version = getFHVersion()
|
||||||
@@ -162,14 +145,6 @@ tasks {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
tasks.publishAllPublicationsToHangar {
|
|
||||||
dependsOn("shadowJar")
|
|
||||||
}
|
|
||||||
|
|
||||||
tasks.modrinth {
|
|
||||||
dependsOn("shadowJar")
|
|
||||||
}
|
|
||||||
|
|
||||||
java {
|
java {
|
||||||
toolchain.languageVersion.set(JavaLanguageVersion.of(21))
|
toolchain.languageVersion.set(JavaLanguageVersion.of(21))
|
||||||
}
|
}
|
||||||
@@ -185,34 +160,3 @@ fun getLastCommitMessage(): String {
|
|||||||
fun getFHVersion(): String {
|
fun getFHVersion(): String {
|
||||||
return file("VERSION").readText()
|
return file("VERSION").readText()
|
||||||
}
|
}
|
||||||
|
|
||||||
hangarPublish {
|
|
||||||
publications.register("plugin") {
|
|
||||||
version = getFHVersion()
|
|
||||||
id = "FancyHolograms"
|
|
||||||
channel = "Alpha"
|
|
||||||
|
|
||||||
apiKey.set(System.getenv("HANGAR_PUBLISH_API_TOKEN"))
|
|
||||||
|
|
||||||
platforms {
|
|
||||||
paper {
|
|
||||||
jar = tasks.shadowJar.flatMap { it.archiveFile }
|
|
||||||
platformVersions = supportedVersions
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
changelog = getLastCommitMessage()
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
modrinth {
|
|
||||||
token.set(System.getenv("MODRINTH_PUBLISH_API_TOKEN"))
|
|
||||||
projectId.set("fancyholograms")
|
|
||||||
versionNumber.set(getFHVersion())
|
|
||||||
versionType.set("alpha")
|
|
||||||
uploadFile.set(file("build/libs/FancyHolograms-${getFHVersion()}.jar"))
|
|
||||||
gameVersions.addAll(supportedVersions)
|
|
||||||
loaders.add("paper")
|
|
||||||
loaders.add("folia")
|
|
||||||
changelog.set(getLastCommitMessage())
|
|
||||||
}
|
|
||||||
@@ -6,36 +6,10 @@ plugins {
|
|||||||
id("xyz.jpenilla.run-paper")
|
id("xyz.jpenilla.run-paper")
|
||||||
id("com.gradleup.shadow")
|
id("com.gradleup.shadow")
|
||||||
id("de.eldoria.plugin-yml.paper")
|
id("de.eldoria.plugin-yml.paper")
|
||||||
id("io.papermc.hangar-publish-plugin")
|
|
||||||
id("com.modrinth.minotaur")
|
|
||||||
}
|
}
|
||||||
|
|
||||||
runPaper.folia.registerTask()
|
runPaper.folia.registerTask()
|
||||||
|
|
||||||
val supportedVersions =
|
|
||||||
listOf(
|
|
||||||
"1.19.4",
|
|
||||||
"1.20",
|
|
||||||
"1.20.1",
|
|
||||||
"1.20.2",
|
|
||||||
"1.20.3",
|
|
||||||
"1.20.4",
|
|
||||||
"1.20.5",
|
|
||||||
"1.20.6",
|
|
||||||
"1.21",
|
|
||||||
"1.21.1",
|
|
||||||
"1.21.2",
|
|
||||||
"1.21.3",
|
|
||||||
"1.21.4",
|
|
||||||
"1.21.5",
|
|
||||||
"1.21.6",
|
|
||||||
"1.21.7",
|
|
||||||
"1.21.8",
|
|
||||||
"1.21.9",
|
|
||||||
"1.21.10",
|
|
||||||
"1.21.11"
|
|
||||||
)
|
|
||||||
|
|
||||||
allprojects {
|
allprojects {
|
||||||
group = "de.oliver"
|
group = "de.oliver"
|
||||||
version = getFNVersion()
|
version = getFNVersion()
|
||||||
@@ -206,14 +180,6 @@ tasks {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
tasks.publishAllPublicationsToHangar {
|
|
||||||
dependsOn(":plugins:fancynpcs:shadowJar")
|
|
||||||
}
|
|
||||||
|
|
||||||
tasks.modrinth {
|
|
||||||
dependsOn(":plugins:fancynpcs:shadowJar")
|
|
||||||
}
|
|
||||||
|
|
||||||
java {
|
java {
|
||||||
toolchain.languageVersion.set(JavaLanguageVersion.of(21))
|
toolchain.languageVersion.set(JavaLanguageVersion.of(21))
|
||||||
}
|
}
|
||||||
@@ -229,34 +195,3 @@ val gitCommitMessage: Provider<String> = providers.exec {
|
|||||||
fun getFNVersion(): String {
|
fun getFNVersion(): String {
|
||||||
return file("VERSION").readText()
|
return file("VERSION").readText()
|
||||||
}
|
}
|
||||||
|
|
||||||
hangarPublish {
|
|
||||||
publications.register("plugin") {
|
|
||||||
version = getFNVersion()
|
|
||||||
id = "FancyNpcs"
|
|
||||||
channel = "Alpha"
|
|
||||||
|
|
||||||
apiKey.set(System.getenv("HANGAR_PUBLISH_API_TOKEN"))
|
|
||||||
|
|
||||||
platforms {
|
|
||||||
paper {
|
|
||||||
jar = tasks.shadowJar.flatMap { it.archiveFile }
|
|
||||||
platformVersions.set(supportedVersions)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
changelog = gitCommitMessage.get()
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
modrinth {
|
|
||||||
token.set(System.getenv("MODRINTH_PUBLISH_API_TOKEN"))
|
|
||||||
projectId.set("fancynpcs")
|
|
||||||
versionNumber.set(getFNVersion())
|
|
||||||
versionType.set("alpha")
|
|
||||||
uploadFile.set(file("build/libs/${project.name}-${getFNVersion()}.jar"))
|
|
||||||
gameVersions.addAll(supportedVersions)
|
|
||||||
loaders.add("paper")
|
|
||||||
loaders.add("folia")
|
|
||||||
changelog.set(gitCommitMessage.get())
|
|
||||||
}
|
|
||||||
Reference in New Issue
Block a user