Skip to content

Commit

Permalink
Renamed methods to clarify operations. #7
Browse files Browse the repository at this point in the history
  • Loading branch information
jzeferino committed May 23, 2017
1 parent 243c014 commit d132292
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ public static void main(String args[]) {
.connect();

// Clean and build all projects.
rebuild(gradleConnection, configuration);
rebuildAndBintrayDeploy(gradleConnection, configuration);

// Replace version if needed.
if (configuration.UpdateReadmeVersion()) {
Expand All @@ -39,7 +39,7 @@ public static void main(String args[]) {
}
}

private static void rebuild(ProjectConnection gradleConnection, Configuration configuration) {
GradleUtils.runGradle(gradleConnection, configuration.getRebuildAndDeployTasks(), configuration.getRebuildAndDeployArguments());
private static void rebuildAndBintrayDeploy(ProjectConnection gradleConnection, Configuration configuration) {
GradleUtils.runGradle(gradleConnection, configuration.getRebuildAndBintrayDeployTasks(), configuration.getRebuildAndBintrayDeployArguments());
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ public String getBintrayKey() {
return bintrayKey;
}

public String[] getRebuildAndDeployArguments() {
public String[] getRebuildAndBintrayDeployArguments() {
return new String[] {
String.format("-PbintrayUser=%s", bintrayUsername),
String.format("-PbintrayKey=%s", bintrayKey),
Expand All @@ -55,7 +55,7 @@ public String[] getRebuildAndDeployArguments() {
};
}

public String[] getRebuildAndDeployTasks() {
public String[] getRebuildAndBintrayDeployTasks() {
return new String[]{"clean", "build", "bintrayUpload"};
}

Expand Down

0 comments on commit d132292

Please sign in to comment.