2021-06-16 23:23:02 +00:00
|
|
|
import java.util.Locale
|
|
|
|
|
2021-06-14 01:06:38 +00:00
|
|
|
plugins {
|
|
|
|
`java-library`
|
2021-06-15 01:50:13 +00:00
|
|
|
`maven-publish`
|
2021-06-14 01:06:38 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
java {
|
|
|
|
withSourcesJar()
|
|
|
|
withJavadocJar()
|
|
|
|
}
|
|
|
|
|
|
|
|
repositories {
|
|
|
|
mavenCentral()
|
|
|
|
maven("https://libraries.minecraft.net")
|
|
|
|
}
|
|
|
|
|
|
|
|
dependencies {
|
|
|
|
implementation(project(":Paper-API"))
|
|
|
|
api("com.mojang:brigadier:1.0.18")
|
|
|
|
|
2021-06-14 06:56:15 +00:00
|
|
|
compileOnly("it.unimi.dsi:fastutil:8.2.2")
|
2021-06-14 01:06:38 +00:00
|
|
|
compileOnly("org.jetbrains:annotations:18.0.0")
|
|
|
|
|
|
|
|
testImplementation("junit:junit:4.13.1")
|
|
|
|
testImplementation("org.hamcrest:hamcrest-library:1.3")
|
|
|
|
testImplementation("org.ow2.asm:asm-tree:7.3.1")
|
2021-06-14 06:56:15 +00:00
|
|
|
}
|
2021-06-15 01:50:13 +00:00
|
|
|
|
|
|
|
configure<PublishingExtension> {
|
|
|
|
publications.create<MavenPublication>("maven") {
|
2021-06-16 23:23:02 +00:00
|
|
|
artifactId = project.name.toLowerCase(Locale.ENGLISH)
|
2021-06-15 01:50:13 +00:00
|
|
|
from(components["java"])
|
|
|
|
}
|
|
|
|
}
|