Browse Source

使用gradle打成和ant一样的zip包

master
tianxx7 4 years ago
parent
commit
9adc12125e
  1. 25
      plugin-function/build.gradle

25
plugin-function/build.gradle

@ -5,3 +5,28 @@
dependencies {
implementation fileTree(dir: 'lib', include: ['*.jar'])
}
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/install")
//: baseName-appendix-0.0.1.zip
// baseName 'baseName'
// appendix 'appendix'
// version '0.0.1'
}
//build
build.mustRunAfter clean
//build时包含哪些文件,
processResources {
// exclude everything
// *.css没效果
// exclude '**/*.css'
// except this file
// include 'xx.xml'
}

Loading…
Cancel
Save