build: 优化构建脚本
This commit is contained in:
@@ -34,11 +34,11 @@ subprojects {
|
|||||||
withSourcesJar()
|
withSourcesJar()
|
||||||
}
|
}
|
||||||
|
|
||||||
tasks.withType(JavaCompile) {
|
tasks.withType(JavaCompile).configureEach {
|
||||||
options.setEncoding("UTF-8")
|
options.setEncoding("UTF-8")
|
||||||
}
|
}
|
||||||
|
|
||||||
tasks.withType(Jar) {
|
tasks.withType(Jar).configureEach {
|
||||||
from([rootProject.file("LICENSE")])
|
from([rootProject.file("LICENSE")])
|
||||||
duplicatesStrategy(DuplicatesStrategy.EXCLUDE)
|
duplicatesStrategy(DuplicatesStrategy.EXCLUDE)
|
||||||
}
|
}
|
||||||
@@ -72,8 +72,8 @@ subprojects {
|
|||||||
url = version.endsWith('SNAPSHOT') ? snapshotsRepoUrl : releasesRepoUrl
|
url = version.endsWith('SNAPSHOT') ? snapshotsRepoUrl : releasesRepoUrl
|
||||||
|
|
||||||
credentials {
|
credentials {
|
||||||
username rootProject.properties.getOrDefault("maven_username", "")
|
username = rootProject.properties.getOrDefault("maven_username", "")
|
||||||
password rootProject.properties.getOrDefault("maven_password", "")
|
password = rootProject.properties.getOrDefault("maven_password", "")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user