forked from fanruan/demo-chart-pie
1 changed files with 26 additions and 0 deletions
@ -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' |
||||
} |
Loading…
Reference in new issue