61 lines
1.6 KiB
Groovy
61 lines
1.6 KiB
Groovy
plugins {
|
|
id 'java'
|
|
}
|
|
|
|
group 'cn.hamster3.mc.plugin.core'
|
|
version '1.0.0-SNAPSHOT'
|
|
|
|
subprojects {
|
|
apply plugin: 'java-library'
|
|
apply plugin: 'maven-publish'
|
|
|
|
group = rootProject.group
|
|
version = rootProject.version
|
|
|
|
repositories {
|
|
maven {
|
|
url = "https://maven.airgame.net/maven-public/"
|
|
}
|
|
}
|
|
|
|
configurations {
|
|
shade
|
|
}
|
|
|
|
dependencies {
|
|
// https://mvnrepository.com/artifact/org.jetbrains/annotations
|
|
compileOnly 'org.jetbrains:annotations:23.0.0'
|
|
// https://mvnrepository.com/artifact/org.projectlombok/lombok
|
|
compileOnly 'org.projectlombok:lombok:1.18.28'
|
|
annotationProcessor 'org.projectlombok:lombok:1.18.28'
|
|
}
|
|
|
|
java {
|
|
sourceCompatibility = JavaVersion.VERSION_1_8
|
|
targetCompatibility = JavaVersion.VERSION_1_8
|
|
// withJavadocJar()
|
|
withSourcesJar()
|
|
}
|
|
|
|
tasks.withType(JavaCompile).configureEach {
|
|
options.setEncoding("UTF-8")
|
|
}
|
|
|
|
tasks.withType(Jar).configureEach {
|
|
from([rootProject.file("LICENSE")])
|
|
duplicatesStrategy(DuplicatesStrategy.EXCLUDE)
|
|
}
|
|
|
|
javadoc {
|
|
options.quiet()
|
|
options.setEncoding("UTF-8")
|
|
options.jFlags("-Dfile.encoding=utf8")
|
|
options.addStringOption('Xdoclint:none', '-quiet')
|
|
options.links = [
|
|
"https://javadoc.io/doc/org.jetbrains/annotations/23.0.0",
|
|
'https://javadoc.io/doc/com.google.code.gson/gson/2.8.0',
|
|
'http://milkbowl.github.io/VaultAPI',
|
|
'https://bukkit.windit.net/javadoc'
|
|
]
|
|
}
|
|
} |