Skip to content

Commit 767b243

Browse files
committed
解决java8生成失败问题
1 parent d8d07b6 commit 767b243

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ buildscript {
1111
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
1212
classpath "com.getkeepsafe.dexcount:dexcount-gradle-plugin:3.0.1"
1313
if (PLUGIN_ENABLE.toBoolean()) {
14-
classpath "com.github.qq549631030:android-junk-code:1.2.3"
14+
classpath "com.github.qq549631030:android-junk-code:1.2.4"
1515
}
1616
// NOTE: Do not place your application dependencies here; they belong
1717
// in the individual module build.gradle files

library/gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#project
22
GROUP=com.github.qq549631030
3-
VERSION_NAME=1.2.3
3+
VERSION_NAME=1.2.4
44

55
POM_ARTIFACT_ID=android-junk-code
66
POM_NAME=AndroidJunkCode

library/src/main/groovy/cn/hx/plugin/junkcode/task/AndroidJunkCodeTask.groovy

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ import org.gradle.api.tasks.OutputDirectory
1313
import org.gradle.api.tasks.TaskAction
1414

1515
import javax.lang.model.element.Modifier
16-
import java.nio.charset.Charset
1716
import java.nio.file.Files
1817
import java.nio.file.Path
1918

@@ -262,7 +261,7 @@ class AndroidJunkCodeTask extends DefaultTask {
262261
}
263262
FileWriter writer
264263
try {
265-
writer = new FileWriter(file, Charset.forName("UTF-8"))
264+
writer = new FileWriter(file)
266265
writer.write(data)
267266
} catch (Exception e) {
268267
e.printStackTrace()

0 commit comments

Comments
 (0)