|
|
@ -99,7 +99,7 @@ publishing { |
|
|
|
|
|
|
|
|
|
|
|
third_build(MavenPublication) { |
|
|
|
third_build(MavenPublication) { |
|
|
|
groupId "com.fr.third" |
|
|
|
groupId "com.fr.third" |
|
|
|
artifactId "fine-third" |
|
|
|
artifactId project.hasProperty("withCBB") ? "fine-third-without-cbb" : "fine-third" |
|
|
|
version maven_version_build |
|
|
|
version maven_version_build |
|
|
|
ext.repo = 'snapshot' |
|
|
|
ext.repo = 'snapshot' |
|
|
|
from components.java |
|
|
|
from components.java |
|
|
@ -169,10 +169,15 @@ task unpack(type:Copy) { |
|
|
|
|
|
|
|
|
|
|
|
// 将essential依赖等级的jar全部解压到classes下 |
|
|
|
// 将essential依赖等级的jar全部解压到classes下 |
|
|
|
task unpackEssential(type:Copy) { |
|
|
|
task unpackEssential(type:Copy) { |
|
|
|
|
|
|
|
if (project.hasProperty("withCBB")) { |
|
|
|
|
|
|
|
println "withCBB" |
|
|
|
for (File file : configurations.essential.files) { |
|
|
|
for (File file : configurations.essential.files) { |
|
|
|
from zipTree(file) |
|
|
|
from zipTree(file) |
|
|
|
} |
|
|
|
} |
|
|
|
into classesDir |
|
|
|
into classesDir |
|
|
|
|
|
|
|
} else { |
|
|
|
|
|
|
|
println "withoutCBB" |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
unpackEssential.dependsOn unpack |
|
|
|
unpackEssential.dependsOn unpack |
|
|
|