build: 优化构建脚本

This commit is contained in:
2022-12-11 22:02:24 +08:00
parent 7a0a4253d6
commit 6a1425ce1f

View File

@@ -34,11 +34,11 @@ subprojects {
withSourcesJar()
}
tasks.withType(JavaCompile) {
tasks.withType(JavaCompile).configureEach {
options.setEncoding("UTF-8")
}
tasks.withType(Jar) {
tasks.withType(Jar).configureEach {
from([rootProject.file("LICENSE")])
duplicatesStrategy(DuplicatesStrategy.EXCLUDE)
}
@@ -72,8 +72,8 @@ subprojects {
url = version.endsWith('SNAPSHOT') ? snapshotsRepoUrl : releasesRepoUrl
credentials {
username rootProject.properties.getOrDefault("maven_username", "")
password rootProject.properties.getOrDefault("maven_password", "")
username = rootProject.properties.getOrDefault("maven_username", "")
password = rootProject.properties.getOrDefault("maven_password", "")
}
}
}