Add gradle command to build antora
This commit is contained in:
@@ -1113,6 +1113,9 @@ public class ReleaserProperties implements Serializable {
|
||||
private String generateReleaseTrainDocsCommand = "bash release_train.sh "
|
||||
+ "--retrieveversions --version {{version}} --ghpages --auto";
|
||||
|
||||
/**
|
||||
* Command to be executed to run Antora.
|
||||
*/
|
||||
private String runAntoraCommand = "./mvnw antora {{systemProps}}";
|
||||
|
||||
/**
|
||||
@@ -1418,6 +1421,11 @@ public class ReleaserProperties implements Serializable {
|
||||
*/
|
||||
private long waitTimeInMinutes = 20;
|
||||
|
||||
/**
|
||||
* Command to be executed to run Antora.
|
||||
*/
|
||||
private String runAntoraCommand = "./gradlew antora {{systemProps}}";
|
||||
|
||||
@Override
|
||||
public String getBuildCommand() {
|
||||
return this.buildCommand;
|
||||
@@ -1502,6 +1510,14 @@ public class ReleaserProperties implements Serializable {
|
||||
this.ignoredGradleRegex = ignoredGradleRegex;
|
||||
}
|
||||
|
||||
public String getRunAntoraCommand() {
|
||||
return runAntoraCommand;
|
||||
}
|
||||
|
||||
public void setRunAntoraCommand(String runAntoraCommand) {
|
||||
this.runAntoraCommand = runAntoraCommand;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return new StringJoiner(", ", Gradle.class.getSimpleName() + "[", "]")
|
||||
@@ -1511,10 +1527,10 @@ public class ReleaserProperties implements Serializable {
|
||||
.add("deployGuidesCommand='" + deployGuidesCommand + "'")
|
||||
.add("publishDocsCommand=" + publishDocsCommand)
|
||||
.add("generateReleaseTrainDocsCommand='" + generateReleaseTrainDocsCommand + "'")
|
||||
.add("runAntoraCommand='" + runAntoraCommand + "'")
|
||||
.add("systemProperties='" + systemProperties + "'").add("waitTimeInMinutes=" + waitTimeInMinutes)
|
||||
.toString();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
public static class Sagan implements Serializable {
|
||||
|
||||
@@ -335,7 +335,9 @@ class CommandPicker {
|
||||
}
|
||||
|
||||
String runAntoraCommand(ProjectVersion version) {
|
||||
// TODO handle gradle and bash?
|
||||
if (projectType == ProjectType.GRADLE) {
|
||||
return gradleCommandWithSystemProps(releaserProperties.getGradle().getRunAntoraCommand());
|
||||
}
|
||||
return mavenCommandWithSystemProps(releaserProperties.getMaven().getRunAntoraCommand(), version);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user