From dfb28e10a451255ec1783bef471b54f2494dc754 Mon Sep 17 00:00:00 2001 From: richie Date: Fri, 5 Jun 2020 15:53:50 +0800 Subject: [PATCH] =?UTF-8?q?=E6=89=93=E5=8C=85=E8=84=9A=E6=9C=AC=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitignore | 4 +++- build.gradle | 11 ++++++----- 2 files changed, 9 insertions(+), 6 deletions(-) diff --git a/.gitignore b/.gitignore index 9b1e052..29c9cac 100644 --- a/.gitignore +++ b/.gitignore @@ -5,4 +5,6 @@ target/ .DS_Store .gradle build -local.properties \ No newline at end of file +local.properties +classes/ +transform-classes/ \ No newline at end of file diff --git a/build.gradle b/build.gradle index 8f33ce8..c56b872 100644 --- a/build.gradle +++ b/build.gradle @@ -53,10 +53,6 @@ task preJar(type:Copy,dependsOn: guard ? 'compile_encrypt_javas' : 'compile_plai from "$projectDir/classes" into "$projectDir/transform-classes" include "**/*.*" - doLast(){ - delete file("$projectDir/classes") - delete file("$projectDir/transform-classes") - } } jar.dependsOn("preJar") @@ -66,6 +62,11 @@ task makeJar(type: Jar,dependsOn: preJar){ appendix pluginName version pluginVersion destinationDir = file("$buildDir/libs") + + doLast(){ + delete file("$projectDir/classes") + delete file("$projectDir/transform-classes") + } } task copyFile(type: Copy,dependsOn: ["makeJar"]){ @@ -78,7 +79,7 @@ task copyFile(type: Copy,dependsOn: ["makeJar"]){ } task zip(type:Zip,dependsOn:["copyFile"]){ - from "$buildDir/temp" + from "$buildDir/temp/plugin" destinationDir file("$buildDir/install") baseName pluginPre appendix pluginName