From 648d3d868c1a5bc983ca2525e6674158cb364101 Mon Sep 17 00:00:00 2001 From: "Cloud.Liu" Date: Fri, 16 Apr 2021 20:50:15 +0800 Subject: [PATCH] =?UTF-8?q?DEC-17833=20feat:=20CBB=E7=8B=AC=E7=AB=8B?= =?UTF-8?q?=E5=8F=91=E5=B8=83=20third=E6=89=93=E5=8C=85=E8=84=9A=E6=9C=AC?= =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- build.third_step0.gradle | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/build.third_step0.gradle b/build.third_step0.gradle index 0c78f0285..c645ec92a 100644 --- a/build.third_step0.gradle +++ b/build.third_step0.gradle @@ -99,7 +99,7 @@ publishing { third_build(MavenPublication) { groupId "com.fr.third" - artifactId "fine-third" + artifactId project.hasProperty("withCBB") ? "fine-third-without-cbb" : "fine-third" version maven_version_build ext.repo = 'snapshot' from components.java @@ -169,12 +169,17 @@ task unpack(type:Copy) { // 将essential依赖等级的jar全部解压到classes下 task unpackEssential(type:Copy) { - for (File file : configurations.essential.files) { - from zipTree(file) + if (project.hasProperty("withCBB")) { + println "withCBB" + for (File file : configurations.essential.files) { + from zipTree(file) + } + into classesDir + } else { + println "withoutCBB" } - into classesDir } unpackEssential.dependsOn unpack -jar.dependsOn unpackEssential +jar.dependsOn unpackEssential \ No newline at end of file