From 6a1425ce1f6e95f1a844f13cc0aa05a75e375526 Mon Sep 17 00:00:00 2001 From: MiniDay <372403923@qq.com> Date: Sun, 11 Dec 2022 22:02:24 +0800 Subject: [PATCH] =?UTF-8?q?build:=20=E4=BC=98=E5=8C=96=E6=9E=84=E5=BB=BA?= =?UTF-8?q?=E8=84=9A=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- build.gradle | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/build.gradle b/build.gradle index 0397ffb..0912ef9 100644 --- a/build.gradle +++ b/build.gradle @@ -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", "") } } }