|
|
@ -49,9 +49,14 @@ def formattedDate = date.format('yyyy.MM.dd') |
|
|
|
def srcDir="." |
|
|
|
def srcDir="." |
|
|
|
def maven_version_build = "" |
|
|
|
def maven_version_build = "" |
|
|
|
def indexV = branchName.indexOf( "%2F"); |
|
|
|
def indexV = branchName.indexOf( "%2F"); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// "FEATURE", "RELEASE"等等 |
|
|
|
|
|
|
|
String branchNameUpperCase = "RELEASE" |
|
|
|
|
|
|
|
|
|
|
|
if(indexV != -1){ |
|
|
|
if(indexV != -1){ |
|
|
|
version= branchName.substring(indexV+3, branchName.length()).toUpperCase() |
|
|
|
version= branchName.substring(indexV+3, branchName.length()).toUpperCase() |
|
|
|
maven_version_build = project.version +"-" + branchName.substring(0, indexV).toUpperCase() +"-SNAPSHOT" |
|
|
|
branchNameUpperCase = branchName.substring(0, indexV).toUpperCase() |
|
|
|
|
|
|
|
maven_version_build = project.version +"-" + branchNameUpperCase +"-SNAPSHOT" |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
version= branchName |
|
|
|
version= branchName |
|
|
|
maven_version_build = project.version +"-SNAPSHOT" |
|
|
|
maven_version_build = project.version +"-SNAPSHOT" |
|
|
@ -67,9 +72,10 @@ configurations { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
// third的feature对应essential和cbb的release,其他对应master |
|
|
|
// third的feature对应essential和cbb的release,其他对应master |
|
|
|
String essentialBranch = version == 'FEATURE' ? 'RELEASE' : 'MASTER' |
|
|
|
String essentialBranch = branchNameUpperCase == 'FEATURE' ? 'RELEASE' : 'MASTER' |
|
|
|
dependencies { |
|
|
|
dependencies { |
|
|
|
essential "com.fr.essential:fine-essential:1.0-${essentialBranch}-SNAPSHOT" |
|
|
|
essential "com.fr.essential:fine-essential:1.0-${essentialBranch}-SNAPSHOT" |
|
|
|
|
|
|
|
essential "com.fr.cbb:fine-universal-skeleton:1.0-${essentialBranch}-SNAPSHOT" |
|
|
|
// thirdjar "com.fr.third:fine-third-base:10.0-BASE-SNAPSHOT" |
|
|
|
// thirdjar "com.fr.third:fine-third-base:10.0-BASE-SNAPSHOT" |
|
|
|
// sigar "com.fr.third:sigar:1.6.0" |
|
|
|
// sigar "com.fr.third:sigar:1.6.0" |
|
|
|
testCompile 'junit:junit:4.12' |
|
|
|
testCompile 'junit:junit:4.12' |
|
|
@ -162,6 +168,6 @@ task unpackEssential(type:Copy) { |
|
|
|
into classesDir |
|
|
|
into classesDir |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
jar.dependsOn unpackEssential |
|
|
|
unpackEssential.dependsOn unpack |
|
|
|
|
|
|
|
|
|
|
|
jar.dependsOn unpack |
|
|
|
jar.dependsOn unpackEssential |
|
|
|