Skip to content

Commit

Permalink
Add gradle-deployment to Ore
Browse files Browse the repository at this point in the history
  • Loading branch information
TBlueF committed Oct 2, 2023
1 parent 5ac293c commit 1ae6fc7
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions implementations/sponge/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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"))
}
}

0 comments on commit 1ae6fc7

Please sign in to comment.