Browse Source

打包脚本问题

pull/2/head
richie 5 years ago
parent
commit
dfb28e10a4
  1. 2
      .gitignore
  2. 11
      build.gradle

2
.gitignore vendored

@ -6,3 +6,5 @@ target/
.gradle .gradle
build 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" from "$projectDir/classes"
into "$projectDir/transform-classes" into "$projectDir/transform-classes"
include "**/*.*" include "**/*.*"
doLast(){
delete file("$projectDir/classes")
delete file("$projectDir/transform-classes")
}
} }
jar.dependsOn("preJar") jar.dependsOn("preJar")
@ -66,6 +62,11 @@ task makeJar(type: Jar,dependsOn: preJar){
appendix pluginName appendix pluginName
version pluginVersion version pluginVersion
destinationDir = file("$buildDir/libs") destinationDir = file("$buildDir/libs")
doLast(){
delete file("$projectDir/classes")
delete file("$projectDir/transform-classes")
}
} }
task copyFile(type: Copy,dependsOn: ["makeJar"]){ task copyFile(type: Copy,dependsOn: ["makeJar"]){
@ -78,7 +79,7 @@ task copyFile(type: Copy,dependsOn: ["makeJar"]){
} }
task zip(type:Zip,dependsOn:["copyFile"]){ task zip(type:Zip,dependsOn:["copyFile"]){
from "$buildDir/temp" from "$buildDir/temp/plugin"
destinationDir file("$buildDir/install") destinationDir file("$buildDir/install")
baseName pluginPre baseName pluginPre
appendix pluginName appendix pluginName

Loading…
Cancel
Save