Add Maven publishing for MobArenaStats' local build dependency
This commit is contained in:
@@ -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."
|
||||||
|
|||||||
Reference in New Issue
Block a user