From fc00df46f295508c84771500d0434c35d31da3f3 Mon Sep 17 00:00:00 2001 From: "Cloud.Liu" Date: Mon, 8 Mar 2021 12:01:13 +0800 Subject: [PATCH] =?UTF-8?q?=E6=97=A0JIRA=E4=BB=BB=E5=8A=A1=20feat:=20CBB?= =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E5=88=86=E6=94=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- build.third_step0.gradle | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/build.third_step0.gradle b/build.third_step0.gradle index 65a8c6bcf..b847efe06 100644 --- a/build.third_step0.gradle +++ b/build.third_step0.gradle @@ -71,8 +71,21 @@ configurations { essential } -// third的feature对应essential和cbb的release,其他对应master -String essentialBranch = branchNameUpperCase == 'FEATURE' ? 'RELEASE' : 'MASTER' +// 主体代码与CBB的对应关系 +String essentialBranch +switch (branchNameUpperCase) { + case "FEATURE": + case "RESEARCH": + essentialBranch = "FEATURE" + break + case "RELEASE": + case "BUGFIX": + essentialBranch = "RELEASE" + 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"