build: 优化构建脚本
This commit is contained in:
@@ -32,13 +32,12 @@ subprojects {
|
||||
java {
|
||||
sourceCompatibility = JavaVersion.VERSION_1_8
|
||||
targetCompatibility = JavaVersion.VERSION_1_8
|
||||
withJavadocJar()
|
||||
// withJavadocJar()
|
||||
withSourcesJar()
|
||||
}
|
||||
|
||||
tasks.withType(JavaCompile) {
|
||||
options.encoding = 'UTF-8'
|
||||
options.compilerArgs << "-Xlint:unchecked"
|
||||
}
|
||||
|
||||
tasks.withType(Jar) {
|
||||
@@ -48,8 +47,9 @@ subprojects {
|
||||
|
||||
javadoc {
|
||||
options.quiet()
|
||||
options.encoding = 'utf8'
|
||||
options.encoding = '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',
|
||||
@@ -65,7 +65,7 @@ subprojects {
|
||||
artifactId = projectNameSplit[projectNameSplit.length - 1]
|
||||
artifact jar
|
||||
artifact sourcesJar
|
||||
artifact javadocJar
|
||||
// artifact javadocJar
|
||||
}
|
||||
}
|
||||
repositories {
|
||||
|
Reference in New Issue
Block a user