CheckAntoraVersionTask has optional properties

This commit is contained in:
Rob Winch 2022-01-18 14:29:14 -06:00
parent 73dda2e192
commit c8713b1d91
1 changed files with 3 additions and 0 deletions

View File

@ -6,6 +6,7 @@ import org.gradle.api.file.RegularFileProperty;
import org.gradle.api.provider.Property;
import org.gradle.api.tasks.Input;
import org.gradle.api.tasks.InputFile;
import org.gradle.api.tasks.Optional;
import org.gradle.api.tasks.TaskAction;
import org.yaml.snakeyaml.Yaml;
import org.yaml.snakeyaml.constructor.Constructor;
@ -54,9 +55,11 @@ public abstract class CheckAntoraVersionTask extends DefaultTask {
public abstract Property<String> getAntoraVersion();
@Input
@Optional
public abstract Property<String> getAntoraPrerelease();
@Input
@Optional
public abstract Property<String> getAntoraDisplayVersion();
public static class AntoraYml {