build: 打包时加入 javadoc 与 source.

扩展依赖库应该提供 Javadoc 与 Source (虽然没几行代码).
This commit is contained in:
LamGC 2022-01-19 14:02:55 +08:00
parent 964959d80a
commit b03af43edd
Signed by: LamGC
GPG Key ID: 6C5AE2A913941E1D

View File

@ -11,6 +11,17 @@ dependencies {
testImplementation(kotlin("test")) testImplementation(kotlin("test"))
} }
tasks.withType<Javadoc> {
options {
encoding = "UTF-8"
}
}
java {
withJavadocJar()
withSourcesJar()
}
tasks.test { tasks.test {
useJUnitPlatform() useJUnitPlatform()
} }