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