build: 优化构建脚本
This commit is contained in:
@@ -32,13 +32,12 @@ subprojects {
|
|||||||
java {
|
java {
|
||||||
sourceCompatibility = JavaVersion.VERSION_1_8
|
sourceCompatibility = JavaVersion.VERSION_1_8
|
||||||
targetCompatibility = JavaVersion.VERSION_1_8
|
targetCompatibility = JavaVersion.VERSION_1_8
|
||||||
withJavadocJar()
|
// withJavadocJar()
|
||||||
withSourcesJar()
|
withSourcesJar()
|
||||||
}
|
}
|
||||||
|
|
||||||
tasks.withType(JavaCompile) {
|
tasks.withType(JavaCompile) {
|
||||||
options.encoding = 'UTF-8'
|
options.encoding = 'UTF-8'
|
||||||
options.compilerArgs << "-Xlint:unchecked"
|
|
||||||
}
|
}
|
||||||
|
|
||||||
tasks.withType(Jar) {
|
tasks.withType(Jar) {
|
||||||
@@ -48,8 +47,9 @@ subprojects {
|
|||||||
|
|
||||||
javadoc {
|
javadoc {
|
||||||
options.quiet()
|
options.quiet()
|
||||||
options.encoding = 'utf8'
|
options.encoding = 'UTF-8'
|
||||||
options.jFlags("-Dfile.encoding=utf8")
|
options.jFlags("-Dfile.encoding=utf8")
|
||||||
|
options.addStringOption('Xdoclint:none', '-quiet')
|
||||||
options.links = [
|
options.links = [
|
||||||
"https://javadoc.io/doc/org.jetbrains/annotations/23.0.0",
|
"https://javadoc.io/doc/org.jetbrains/annotations/23.0.0",
|
||||||
'https://javadoc.io/doc/com.google.code.gson/gson/2.8.0',
|
'https://javadoc.io/doc/com.google.code.gson/gson/2.8.0',
|
||||||
@@ -65,7 +65,7 @@ subprojects {
|
|||||||
artifactId = projectNameSplit[projectNameSplit.length - 1]
|
artifactId = projectNameSplit[projectNameSplit.length - 1]
|
||||||
artifact jar
|
artifact jar
|
||||||
artifact sourcesJar
|
artifact sourcesJar
|
||||||
artifact javadocJar
|
// artifact javadocJar
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
repositories {
|
repositories {
|
||||||
|
Reference in New Issue
Block a user