2023-09-22 13:59:37 +02:00
|
|
|
plugins {
|
|
|
|
id "java-library"
|
|
|
|
id "maven-publish"
|
|
|
|
}
|
|
|
|
|
|
|
|
repositories {
|
|
|
|
mavenLocal()
|
|
|
|
maven {
|
|
|
|
url = uri("https://repo.viaversion.com")
|
|
|
|
}
|
|
|
|
|
|
|
|
maven {
|
|
|
|
url = uri("https://hub.spigotmc.org/nexus/content/repositories/snapshots/")
|
|
|
|
}
|
|
|
|
|
|
|
|
maven {
|
|
|
|
url = uri("https://repo.maven.apache.org/maven2/")
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2023-09-22 14:13:03 +02:00
|
|
|
version = project.maven_version
|
|
|
|
group = project.maven_group
|
|
|
|
|
2023-09-22 13:59:37 +02:00
|
|
|
dependencies {
|
|
|
|
compileOnly "com.viaversion:viaversion-api:4.6.2"
|
|
|
|
compileOnly "org.spigotmc:spigot-api:1.16.5-R0.1-SNAPSHOT"
|
|
|
|
}
|
|
|
|
|
|
|
|
java.sourceCompatibility = JavaVersion.VERSION_1_8
|
|
|
|
|
2023-09-22 14:13:03 +02:00
|
|
|
processResources {
|
|
|
|
inputs.property "version", project.version
|
|
|
|
|
|
|
|
filesMatching("plugin.yml") {
|
|
|
|
expand "version": project.version
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
java {
|
|
|
|
withSourcesJar()
|
|
|
|
}
|
|
|
|
|
2023-09-22 13:59:37 +02:00
|
|
|
publishing {
|
|
|
|
publications {
|
|
|
|
maven(MavenPublication) {
|
|
|
|
from(components.java)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
tasks.withType(JavaCompile) {
|
|
|
|
options.encoding = "UTF-8"
|
|
|
|
}
|
|
|
|
|
|
|
|
tasks.withType(Javadoc) {
|
|
|
|
options.encoding = "UTF-8"
|
|
|
|
}
|