Authored by qinchao

java发布存在互斥项目,不允许同时发布

... ... @@ -13,9 +13,16 @@ public class ProjectMutex {
//与其他项目互斥,但是本身并不互斥
private final static List<List<String>> java_mutex_project_to_other=new ArrayList<>();
private final static List<String> java_mutex_project_to_other_rule1= Arrays.asList(new String[]{"yohobuy-activity","yohobuy-product","yohobuy-promotion"});
//private final static List<String> java_mutex_project_to_other_rule1= Arrays.asList(new String[]{"yohobuy-activity","yohobuy-product","yohobuy-promotion","yoho-gateway"});
private final static List<String> java_mutex_project_to_other_rule1= Arrays.asList(new String[]{"yohobuy-activity"});
private final static List<String> java_mutex_project_to_other_rule2= Arrays.asList(new String[]{"yohobuy-product"});
private final static List<String> java_mutex_project_to_other_rule3= Arrays.asList(new String[]{"yohobuy-promotion"});
private final static List<String> java_mutex_project_to_other_rule4= Arrays.asList(new String[]{"yoho-gateway"});
static {
java_mutex_project_to_other.add(java_mutex_project_to_other_rule1);
java_mutex_project_to_other.add(java_mutex_project_to_other_rule2);
java_mutex_project_to_other.add(java_mutex_project_to_other_rule3);
java_mutex_project_to_other.add(java_mutex_project_to_other_rule4);
}
... ...