|
|
|
@ -9,10 +9,20 @@ dependencies {
|
|
|
|
|
//这个不可以使用form /libs/*.*的通配符, |
|
|
|
|
//可以使用from指定具体的文件名 |
|
|
|
|
//将生成的zip输出到$buildDir下 |
|
|
|
|
task zip(type:Zip,dependsOn:["build"]){ |
|
|
|
|
task copyFile(type:Copy,dependsOn: ["build"]){ |
|
|
|
|
from "$buildDir/libs" |
|
|
|
|
from "$projectDir/lib" |
|
|
|
|
from "$projectDir/plugin.xml" |
|
|
|
|
into file("$buildDir/temp/fr-"+"$project.name"+"-$project.version") |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
task zip(type:Zip,dependsOn:["copyFile"]){ |
|
|
|
|
from "$buildDir/temp" |
|
|
|
|
destinationDir file("$buildDir") |
|
|
|
|
//生成的文件名 baseName-appendix-0.0.1.zip |
|
|
|
|
// baseName 'baseName' |
|
|
|
|
// appendix 'appendix' |
|
|
|
|
// version '0.0.1' |
|
|
|
|
} |
|
|
|
|
//先清理再build |
|
|
|
|
build.mustRunAfter clean |
|
|
|
|