Browse Source

Pull request #2175: DEC-17833 feat: CBB独立发布 third打包脚本修改

Merge in CORE/base-third from ~CLOUD.LIU/base-third:release/10.0 to release/10.0

* commit 'dedbd83ef70195634d7741bdbfc3d8170a87befc':
  DEC-17833 fix: CBB独立发布 third打包脚本修改 withCBB写反了
  DEC-17833 feat: CBB独立发布 third打包脚本修改
  DEC-17833 feat: CBB独立发布 third打包脚本修改
release/10.0
Cloud.Liu 4 years ago
parent
commit
34de499c7d
  1. 42
      build.third_step0.gradle
  2. 18
      build.third_step2.gradle
  3. 19
      build.third_step3.gradle
  4. 18
      build.third_step4.gradle
  5. 18
      build.third_step5.gradle
  6. 18
      build.third_step6.gradle
  7. 18
      build.third_step7.gradle

42
build.third_step0.gradle

@ -71,26 +71,16 @@ configurations {
essential essential
} }
// CBB的对应关系 // essential的对应关系配置在TeamCity
String essentialBranch String essentialVersion = findProperty("essentialVersion")
switch (branchNameUpperCase) { String cbbVersion = findProperty("cbbVersion")
case "FEATURE":
case "RESEARCH": //
essentialBranch = "FEATURE" dependencies{
break essential "com.fr.essential:fine-essential:${essentialVersion}"
case "RELEASE": essential "com.fr.cbb:fine-scheduler:${cbbVersion}"
case "BUGFIX": essential "com.fr.cbb:fine-function:${cbbVersion}"
essentialBranch = "RELEASE" essential "com.fr.cbb:fine-sql:${cbbVersion}"
break
default:
essentialBranch = "MASTER"
}
dependencies {
essential "com.fr.essential:fine-essential:1.0-${essentialBranch}-SNAPSHOT"
essential "com.fr.cbb:fine-scheduler:1.0-${essentialBranch}-SNAPSHOT"
essential "com.fr.cbb:fine-function:1.0-${essentialBranch}-SNAPSHOT"
essential "com.fr.cbb:fine-sql: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'
@ -109,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" : "fine-third-without-cbb"
version maven_version_build version maven_version_build
ext.repo = 'snapshot' ext.repo = 'snapshot'
from components.java from components.java
@ -179,12 +169,14 @@ task unpack(type:Copy) {
// essential依赖等级的jar全部解压到classes下 // essential依赖等级的jar全部解压到classes下
task unpackEssential(type:Copy) { task unpackEssential(type:Copy) {
for (File file : configurations.essential.files) { if (project.hasProperty("withCBB")) {
from zipTree(file) for (File file : configurations.essential.files) {
from zipTree(file)
}
into classesDir
} }
into classesDir
} }
unpackEssential.dependsOn unpack unpackEssential.dependsOn unpack
jar.dependsOn unpackEssential jar.dependsOn unpackEssential

18
build.third_step2.gradle

@ -71,24 +71,12 @@ if(indexV != -1){
version= branchName version= branchName
} }
// CBB的对应关系 // essential的对应关系配置在TeamCity
String essentialBranch String essentialVersion = findProperty("essentialVersion")
switch (version) {
case "FEATURE":
case "RESEARCH":
essentialBranch = "FEATURE"
break
case "RELEASE":
case "BUGFIX":
essentialBranch = "RELEASE"
break
default:
essentialBranch = "MASTER"
}
// //
dependencies{ dependencies{
compileOnly "com.fr.essential:fine-essential:1.0-${essentialBranch}-SNAPSHOT" compileOnly "com.fr.essential:fine-essential:${essentialVersion}"
compile fileTree(dir:"${srcDir}/fine-byte-buddy/lib",include:'**/*.jar') compile fileTree(dir:"${srcDir}/fine-byte-buddy/lib",include:'**/*.jar')
compile fileTree(dir:"${srcDir}/fine-commons-fileupload/lib",include:'**/*.jar') compile fileTree(dir:"${srcDir}/fine-commons-fileupload/lib",include:'**/*.jar')
compile fileTree(dir:"${srcDir}/fine-httpcomponents/http-client/lib",include:'**/*.jar') compile fileTree(dir:"${srcDir}/fine-httpcomponents/http-client/lib",include:'**/*.jar')

19
build.third_step3.gradle

@ -54,25 +54,12 @@ if(indexV != -1){
version= branchName version= branchName
} }
// CBB的对应关系 // essential的对应关系配置在TeamCity
String essentialBranch String essentialVersion = findProperty("essentialVersion")
switch (version) {
case "FEATURE":
case "RESEARCH":
essentialBranch = "FEATURE"
break
case "RELEASE":
case "BUGFIX":
essentialBranch = "RELEASE"
break
default:
essentialBranch = "MASTER"
}
// //
dependencies{ dependencies{
compileOnly "com.fr.essential:fine-essential:1.0-${essentialBranch}-SNAPSHOT" compileOnly "com.fr.essential:fine-essential:${essentialVersion}"
compile fileTree(dir:"${srcDir}/fine-jboss-logging/lib",include:'**/*.jar') compile fileTree(dir:"${srcDir}/fine-jboss-logging/lib",include:'**/*.jar')
compile fileTree(dir:"${srcDir}/build/libs/",include:'**/*.jar') compile fileTree(dir:"${srcDir}/build/libs/",include:'**/*.jar')
compile fileTree(dir:System.getenv("JAVA_HOME"),include:"lib/tools.jar") compile fileTree(dir:System.getenv("JAVA_HOME"),include:"lib/tools.jar")

18
build.third_step4.gradle

@ -54,24 +54,12 @@ if(indexV != -1){
version= branchName version= branchName
} }
// CBB的对应关系 // essential的对应关系配置在TeamCity
String essentialBranch String essentialVersion = findProperty("essentialVersion")
switch (version) {
case "FEATURE":
case "RESEARCH":
essentialBranch = "FEATURE"
break
case "RELEASE":
case "BUGFIX":
essentialBranch = "RELEASE"
break
default:
essentialBranch = "MASTER"
}
// //
dependencies{ dependencies{
compileOnly "com.fr.essential:fine-essential:1.0-${essentialBranch}-SNAPSHOT" compileOnly "com.fr.essential:fine-essential:${essentialVersion}"
// compile fileTree(dir:"${srcDir}/fine-hibernate/lib",include:'**/*.jar') // compile fileTree(dir:"${srcDir}/fine-hibernate/lib",include:'**/*.jar')
compile fileTree(dir:"${srcDir}/fine-spring/lib",include:'**/*.jar') compile fileTree(dir:"${srcDir}/fine-spring/lib",include:'**/*.jar')
compile fileTree(dir:"${srcDir}/build/libs/",include:'**/*.jar') compile fileTree(dir:"${srcDir}/build/libs/",include:'**/*.jar')

18
build.third_step5.gradle

@ -54,24 +54,12 @@ if(indexV != -1){
version= branchName version= branchName
} }
// CBB的对应关系 // essential的对应关系配置在TeamCity
String essentialBranch String essentialVersion = findProperty("essentialVersion")
switch (version) {
case "FEATURE":
case "RESEARCH":
essentialBranch = "FEATURE"
break
case "RELEASE":
case "BUGFIX":
essentialBranch = "RELEASE"
break
default:
essentialBranch = "MASTER"
}
// //
dependencies{ dependencies{
compileOnly "com.fr.essential:fine-essential:1.0-${essentialBranch}-SNAPSHOT" compileOnly "com.fr.essential:fine-essential:${essentialVersion}"
compile fileTree(dir:"${srcDir}/fine-hibernate/lib",include:'**/*.jar') compile fileTree(dir:"${srcDir}/fine-hibernate/lib",include:'**/*.jar')
// compile fileTree(dir:"${srcDir}/fine-spring/lib",include:'**/*.jar') // compile fileTree(dir:"${srcDir}/fine-spring/lib",include:'**/*.jar')
compile fileTree(dir:"${srcDir}/build/libs/",include:'**/*.jar') compile fileTree(dir:"${srcDir}/build/libs/",include:'**/*.jar')

18
build.third_step6.gradle

@ -52,24 +52,12 @@ if(indexV != -1){
version= branchName version= branchName
} }
// CBB的对应关系 // essential的对应关系配置在TeamCity
String essentialBranch String essentialVersion = findProperty("essentialVersion")
switch (version) {
case "FEATURE":
case "RESEARCH":
essentialBranch = "FEATURE"
break
case "RELEASE":
case "BUGFIX":
essentialBranch = "RELEASE"
break
default:
essentialBranch = "MASTER"
}
// //
dependencies{ dependencies{
compileOnly "com.fr.essential:fine-essential:1.0-${essentialBranch}-SNAPSHOT" compileOnly "com.fr.essential:fine-essential:${essentialVersion}"
compile fileTree(dir:"${srcDir}/fine-druid/lib",include:'ojdbc7-12.1.0.jar') compile fileTree(dir:"${srcDir}/fine-druid/lib",include:'ojdbc7-12.1.0.jar')
compile fileTree(dir:"${srcDir}/fine-druid/lib",include:'**/*.jar') compile fileTree(dir:"${srcDir}/fine-druid/lib",include:'**/*.jar')
compile fileTree(dir:"${srcDir}/fine-socketio/lib",include:'**/*.jar') compile fileTree(dir:"${srcDir}/fine-socketio/lib",include:'**/*.jar')

18
build.third_step7.gradle

@ -52,24 +52,12 @@ if(indexV != -1){
version= branchName version= branchName
} }
// CBB的对应关系 // essential的对应关系配置在TeamCity
String essentialBranch String essentialVersion = findProperty("essentialVersion")
switch (version) {
case "FEATURE":
case "RESEARCH":
essentialBranch = "FEATURE"
break
case "RELEASE":
case "BUGFIX":
essentialBranch = "RELEASE"
break
default:
essentialBranch = "MASTER"
}
// //
dependencies{ dependencies{
compileOnly "com.fr.essential:fine-essential:1.0-${essentialBranch}-SNAPSHOT" compileOnly "com.fr.essential:fine-essential:${essentialVersion}"
compile fileTree(dir:"${srcDir}/build/libs/",include:'**/*.jar') compile fileTree(dir:"${srcDir}/build/libs/",include:'**/*.jar')
compile fileTree(dir:System.getenv("JAVA_HOME"),include:"lib/tools.jar") compile fileTree(dir:System.getenv("JAVA_HOME"),include:"lib/tools.jar")
compile group: "javax.servlet", name: "javax.servlet-api", version: "3.0.1" compile group: "javax.servlet", name: "javax.servlet-api", version: "3.0.1"

Loading…
Cancel
Save