diff --git a/build.gradle b/build.gradle index d5fc17c..1bfb52f 100644 --- a/build.gradle +++ b/build.gradle @@ -11,7 +11,7 @@ buildscript { classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" classpath "com.getkeepsafe.dexcount:dexcount-gradle-plugin:3.0.1" if (PLUGIN_ENABLE.toBoolean()) { - classpath "com.github.qq549631030:android-junk-code:1.3.3" + classpath "com.github.qq549631030:android-junk-code:1.3.4" } // NOTE: Do not place your application dependencies here; they belong // in the individual module build.gradle files diff --git a/library/build.gradle b/library/build.gradle index f73dc2b..628af8e 100644 --- a/library/build.gradle +++ b/library/build.gradle @@ -6,7 +6,7 @@ buildscript { } dependencies { classpath 'com.vanniktech:gradle-maven-publish-plugin:0.18.0' - classpath "com.gradle.publish:plugin-publish-plugin:1.2.0" + classpath "com.gradle.publish:plugin-publish-plugin:1.3.0" } } diff --git a/library/gradle.properties b/library/gradle.properties index 87ebbb2..565a06a 100644 --- a/library/gradle.properties +++ b/library/gradle.properties @@ -1,7 +1,7 @@ #project GROUP=com.github.qq549631030 POM_ARTIFACT_ID=android-junk-code -VERSION_NAME=1.3.3 +VERSION_NAME=1.3.4 POM_PACKAGING=jar POM_NAME=AndroidJunkCode diff --git a/library/src/main/groovy/cn/hx/plugin/junkcode/task/AndroidJunkCodeTask.groovy b/library/src/main/groovy/cn/hx/plugin/junkcode/task/AndroidJunkCodeTask.groovy index 568e6b9..e4a8c44 100644 --- a/library/src/main/groovy/cn/hx/plugin/junkcode/task/AndroidJunkCodeTask.groovy +++ b/library/src/main/groovy/cn/hx/plugin/junkcode/task/AndroidJunkCodeTask.groovy @@ -41,7 +41,7 @@ abstract class AndroidJunkCodeTask extends DefaultTask { for (int i = 0; i < config.packageCount; i++) { String packageName if (config.packageCreator) { - def packageNameBuilder = new StringBuffer() + def packageNameBuilder = new StringBuilder() config.packageCreator.execute(new Tuple2(i, packageNameBuilder)) packageName = packageNameBuilder.toString() } else { diff --git a/library/src/main/groovy/cn/hx/plugin/junkcode/task/GenerateJunkCodeTask.groovy b/library/src/main/groovy/cn/hx/plugin/junkcode/task/GenerateJunkCodeTask.groovy index 9f78c4e..085248b 100644 --- a/library/src/main/groovy/cn/hx/plugin/junkcode/task/GenerateJunkCodeTask.groovy +++ b/library/src/main/groovy/cn/hx/plugin/junkcode/task/GenerateJunkCodeTask.groovy @@ -54,7 +54,7 @@ abstract class GenerateJunkCodeTask extends DefaultTask { for (int i = 0; i < config.packageCount; i++) { String packageName if (config.packageCreator) { - def packageNameBuilder = new StringBuffer() + def packageNameBuilder = new StringBuilder() config.packageCreator.execute(new Tuple2(i, packageNameBuilder)) packageName = packageNameBuilder.toString() } else {