Browse Source

打包脚本问题

master
richie 5 years ago
parent
commit
dfb28e10a4
  1. 4
      .gitignore
  2. 11
      build.gradle

4
.gitignore vendored

@ -5,4 +5,6 @@ target/
.DS_Store
.gradle
build
local.properties
local.properties
classes/
transform-classes/

11
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

Loading…
Cancel
Save