fix: publish to minestom-snapshots

(cherry picked from commit f73d8faf9e)
This commit is contained in:
mworzala 2023-11-23 11:13:09 -05:00 committed by Matt Worzala
parent f4176da37a
commit fb0c8c5405

View File

@ -9,14 +9,16 @@ plugins {
// Read env vars (used for publishing generally) // Read env vars (used for publishing generally)
version = System.getenv("MINESTOM_VERSION") ?: "dev" version = System.getenv("MINESTOM_VERSION") ?: "dev"
var channel = System.getenv("MINESTOM_CHANNEL") ?: "local" // local, snapshot, release val channel = System.getenv("MINESTOM_CHANNEL") ?: "local" // local, snapshot, release
val shortDescription = "1.20.1 Lightweight Minecraft server"
allprojects { allprojects {
apply(plugin = "java") apply(plugin = "java")
group = "net.minestom" group = "net.minestom"
version = rootProject.version version = rootProject.version
description = "Lightweight and multi-threaded Minecraft server implementation" description = shortDescription
repositories { repositories {
mavenCentral() mavenCentral()
@ -138,8 +140,8 @@ tasks {
from(project.components["java"]) from(project.components["java"])
pom { pom {
name.set("minestom") name.set(this@create.artifactId)
description.set(project.description) description.set(shortDescription)
url.set("https://github.com/minestom/minestom") url.set("https://github.com/minestom/minestom")
licenses { licenses {