Add Maven publishing for MobArenaStats' local build dependency
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
plugins {
|
||||
id("java-library")
|
||||
id("com.gradleup.shadow") version "9.6.1"
|
||||
id("maven-publish")
|
||||
}
|
||||
|
||||
group = "com.garbagemule"
|
||||
@@ -71,6 +72,17 @@ tasks {
|
||||
// Let the build task produce the final artifact.
|
||||
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") {
|
||||
group = "verification"
|
||||
description = "Fails if legacy Bukkit material access returns to production sources."
|
||||
|
||||
Reference in New Issue
Block a user