Commit 941173213a10e1ef5e1a03e50536b1edb49b8614
1 parent
c0d6c0ad
Exists in
master
and in
2 other branches
1.字符编码问题处理
Showing
1 changed file
with
5 additions
and
1 deletions
Show diff stats
build.gradle
| ... | ... | @@ -36,6 +36,10 @@ task sourcesJar(type: Jar, dependsOn: classes) { |
| 36 | 36 | from sourceSets.main.allSource |
| 37 | 37 | } |
| 38 | 38 | |
| 39 | +tasks.withType(JavaCompile) { | |
| 40 | + options.encoding = "UTF-8" | |
| 41 | +} | |
| 42 | + | |
| 39 | 43 | artifacts { |
| 40 | 44 | archives sourcesJar |
| 41 | 45 | } |
| ... | ... | @@ -51,7 +55,7 @@ uploadArchives { |
| 51 | 55 | authentication(userName: NEXUS_USERNAME, password: NEXUS_PASSWORD) |
| 52 | 56 | } |
| 53 | 57 | pom.project { |
| 54 | - version '2.1.2' | |
| 58 | + version '2.1.3' | |
| 55 | 59 | artifactId ARTIFACT_Id |
| 56 | 60 | groupId GROUP_ID |
| 57 | 61 | packaging TYPE | ... | ... |