比如:qrcode_zxing_core-3.4.1.jar??打包进SDK里。
task buildJar(type: Jar){
archiveName(OUTPUT_NAME)
from (project.zipTree(JAR_PATH + "/"+ JAR_NAME))
from (project.zipTree("libs/FF_BT.jar"))
from (project.zipTree("libs/qrcode_zxing_core-3.4.1.jar"))
destinationDir file(OUTPUT_PATH)
include("com/ftsafe/epaypos/sdk/**/*.class")
include("com/ftsafe/bluetooth/**/*.class")
include("com/google/zxing/*.class")
include("com/google/zxing/**/*.class")
}
两步
//jar
from (project.zipTree("libs/qrcode_zxing_core-3.4.1.jar"))
//所有class,不要漏
include("com/google/zxing/*.class")
include("com/google/zxing/**/*.class")
?
|