Add Maven publishing for MobArenaStats' local build dependency
build / build (push) Successful in 2m7s
build / draft (push) Skipped

This commit is contained in:
Michael Burgess
2026-08-06 22:40:43 -04:00
parent 23698ced3e
commit d1eb4191e9
+12
View File
@@ -1,6 +1,7 @@
plugins { plugins {
id("java-library") id("java-library")
id("com.gradleup.shadow") version "9.6.1" id("com.gradleup.shadow") version "9.6.1"
id("maven-publish")
} }
group = "com.garbagemule" group = "com.garbagemule"
@@ -71,6 +72,17 @@ tasks {
// Let the build task produce the final artifact. // Let the build task produce the final artifact.
build { dependsOn(shadowJar) } build { dependsOn(shadowJar) }
} }
publishing {
publications {
create<MavenPublication>("shadow") {
groupId = "com.garbagemule"
artifactId = "MobArena"
version = project.version.toString()
artifact(tasks.shadowJar)
}
}
}
val checkNoLegacyMaterialApi = tasks.register("checkNoLegacyMaterialApi") { val checkNoLegacyMaterialApi = tasks.register("checkNoLegacyMaterialApi") {
group = "verification" group = "verification"
description = "Fails if legacy Bukkit material access returns to production sources." description = "Fails if legacy Bukkit material access returns to production sources."