apache commons replaced with internal StringUtil
package org.shipkit.internal.gradle;
-import org.apache.commons.lang.StringUtils;
import org.gradle.api.Action;
import org.gradle.api.Plugin;
import org.gradle.api.Project;
@@ -11,6 +10,7 @@ import org.shipkit.gradle.git.IdentifyGitBranchTask;
import org.shipkit.internal.gradle.configuration.BasicValidator;
import org.shipkit.internal.gradle.configuration.LazyConfiguration;
import org.shipkit.internal.gradle.git.GitBranchPlugin;
+import org.shipkit.internal.gradle.util.StringUtil;
import static org.shipkit.internal.gradle.GitSetupPlugin.CHECKOUT_TASK;
import static org.shipkit.internal.gradle.git.GitBranchPlugin.IDENTIFY_GIT_BRANCH;
@@ -41,7 +41,7 @@ public class TravisPlugin implements Plugin<Project> {
@Override
public void execute(GitBranchPlugin p) {
IdentifyGitBranchTask identifyBranch = (IdentifyGitBranchTask) project.getTasks().getByName(IDENTIFY_GIT_BRANCH);
- if(StringUtils.isNotEmpty(branch)) {
+ if(!StringUtil.isEmpty(branch)) {
identifyBranch.setBranch(branch);
}
}
