Added skip project names feature; fixes gh-87

This commit is contained in:
Marcin Grzejszczak
2018-06-25 10:39:54 +02:00
parent 9578294fbd
commit 2a4cf036c6
5 changed files with 50 additions and 8 deletions

View File

@@ -15,6 +15,7 @@
*/
package org.springframework.cloud.release.internal;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.HashMap;
import java.util.List;
@@ -70,6 +71,16 @@ public class ReleaserProperties {
*/
private String gitOrgUrl = "https://github.com/spring-cloud";
/**
* Names of projects to skip deployment for meta-release
*/
private List<String> projectsToSkip = new ArrayList<String>() {
{
this.add("spring-cloud-stream");
this.add("spring-cloud-task");
}
};
public boolean isEnabled() {
return this.enabled;
}
@@ -93,6 +104,14 @@ public class ReleaserProperties {
public void setReleaseTrainProjectName(String releaseTrainProjectName) {
this.releaseTrainProjectName = releaseTrainProjectName;
}
public List<String> getProjectsToSkip() {
return this.projectsToSkip;
}
public void setProjectsToSkip(List<String> projectsToSkip) {
this.projectsToSkip = projectsToSkip;
}
}
public static class Git {