From 941173213a10e1ef5e1a03e50536b1edb49b8614 Mon Sep 17 00:00:00 2001 From: 王彬 Date: Fri, 15 Nov 2019 11:08:22 +0800 Subject: [PATCH] 1.字符编码问题处理 --- build.gradle | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/build.gradle b/build.gradle index ea6bd52..6c880f4 100644 --- a/build.gradle +++ b/build.gradle @@ -36,6 +36,10 @@ task sourcesJar(type: Jar, dependsOn: classes) { from sourceSets.main.allSource } +tasks.withType(JavaCompile) { + options.encoding = "UTF-8" +} + artifacts { archives sourcesJar } @@ -51,7 +55,7 @@ uploadArchives { authentication(userName: NEXUS_USERNAME, password: NEXUS_PASSWORD) } pom.project { - version '2.1.2' + version '2.1.3' artifactId ARTIFACT_Id groupId GROUP_ID packaging TYPE -- libgit2 0.21.2