From 37604e97adcbae44afbefc5a5f3ab2eb1d76f29a Mon Sep 17 00:00:00 2001 From: tianxx7 <1729549607@qq.com> Date: Mon, 18 May 2020 18:03:28 +0800 Subject: [PATCH] =?UTF-8?q?=E9=A5=BC=E5=9B=BE=E7=A4=BA=E4=BE=8B=E4=BF=AE?= =?UTF-8?q?=E6=94=B9=E4=B8=BAgradle?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- build.gradle | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 build.gradle diff --git a/build.gradle b/build.gradle new file mode 100644 index 0000000..836f58c --- /dev/null +++ b/build.gradle @@ -0,0 +1,26 @@ +sourceCompatibility = "1.8" +targetCompatibility = "1.8" +dependencies { + //使用本地jar + implementation fileTree(dir: 'lib', include: ['*.jar']) +} + +//将下面两个文件夹的内容打包成为zip +//这个不可以使用form /libs/*.*的通配符, +//可以使用from指定具体的文件名 +//将生成的zip输出到$buildDir下 +task zip(type:Zip,dependsOn:["build"]){ + from "$buildDir/libs" + from "$projectDir/plugin.xml" + destinationDir file("$buildDir") +} +//先清理再build +build.mustRunAfter clean +//控制build时包含哪些文件,排除哪些文件 +processResources { +// exclude everything +// 用*.css没效果 +// exclude '**/*.css' +// except this file +// include 'xx.xml' +} \ No newline at end of file