Add gradle-deployment to Ore

This commit is contained in:
Lukas Rieger (Blue) 2023-10-02 16:58:22 +02:00
parent 5ac293ca18
commit 1ae6fc790d
No known key found for this signature in database
GPG Key ID: 2D09EC5ED2687FF2
1 changed files with 11 additions and 0 deletions

View File

@ -8,6 +8,7 @@ plugins {
id ("com.github.johnrengelman.shadow") version "7.1.2"
id ("org.spongepowered.gradle.plugin") version "2.0.0"
id ("com.modrinth.minotaur") version "2.+"
id("org.spongepowered.gradle.ore") version "2.2.0"
}
group = "de.bluecolored.bluemap.bukkit"
@ -142,4 +143,14 @@ modrinth {
tasks.register("publish") {
dependsOn("modrinth")
dependsOn("publishToOre")
}
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}")
publishArtifacts.setFrom(tasks.findByName("shadowJar"))
}
}