2021-05-25 06:58:34 +02:00
|
|
|
plugins {
|
|
|
|
`java-library`
|
|
|
|
`maven-publish`
|
|
|
|
}
|
|
|
|
|
|
|
|
tasks {
|
|
|
|
// Variable replacements
|
|
|
|
processResources {
|
|
|
|
filesMatching(listOf("plugin.yml", "mcmod.info", "fabric.mod.json", "bungee.yml")) {
|
|
|
|
expand("version" to project.version, "description" to project.description)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
javadoc {
|
|
|
|
options.encoding = Charsets.UTF_8.name()
|
2021-05-25 08:40:08 +02:00
|
|
|
(options as StandardJavadocDocletOptions).addStringOption("Xdoclint:none", "-quiet")
|
2021-05-25 06:58:34 +02:00
|
|
|
}
|
|
|
|
compileJava {
|
2022-01-03 18:41:07 +01:00
|
|
|
//options.release.set(8)
|
2021-05-25 06:58:34 +02:00
|
|
|
options.encoding = Charsets.UTF_8.name()
|
|
|
|
options.compilerArgs.addAll(listOf("-nowarn", "-Xlint:-unchecked", "-Xlint:-deprecation"))
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
java {
|
|
|
|
javaTarget(8)
|
|
|
|
withSourcesJar()
|
|
|
|
}
|
|
|
|
|
|
|
|
publishing {
|
|
|
|
publications.create<MavenPublication>("mavenJava") {
|
|
|
|
groupId = rootProject.group as String
|
|
|
|
artifactId = project.name
|
|
|
|
version = rootProject.version as String
|
|
|
|
}
|
|
|
|
repositories.maven {
|
|
|
|
name = "Via"
|
|
|
|
url = uri("https://repo.viaversion.com/")
|
|
|
|
credentials(PasswordCredentials::class)
|
|
|
|
authentication {
|
|
|
|
create<BasicAuthentication>("basic")
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|