CheckAntoraVersionTask has optional properties
This commit is contained in:
parent
73dda2e192
commit
c8713b1d91
|
@ -6,6 +6,7 @@ import org.gradle.api.file.RegularFileProperty;
|
||||||
import org.gradle.api.provider.Property;
|
import org.gradle.api.provider.Property;
|
||||||
import org.gradle.api.tasks.Input;
|
import org.gradle.api.tasks.Input;
|
||||||
import org.gradle.api.tasks.InputFile;
|
import org.gradle.api.tasks.InputFile;
|
||||||
|
import org.gradle.api.tasks.Optional;
|
||||||
import org.gradle.api.tasks.TaskAction;
|
import org.gradle.api.tasks.TaskAction;
|
||||||
import org.yaml.snakeyaml.Yaml;
|
import org.yaml.snakeyaml.Yaml;
|
||||||
import org.yaml.snakeyaml.constructor.Constructor;
|
import org.yaml.snakeyaml.constructor.Constructor;
|
||||||
|
@ -54,9 +55,11 @@ public abstract class CheckAntoraVersionTask extends DefaultTask {
|
||||||
public abstract Property<String> getAntoraVersion();
|
public abstract Property<String> getAntoraVersion();
|
||||||
|
|
||||||
@Input
|
@Input
|
||||||
|
@Optional
|
||||||
public abstract Property<String> getAntoraPrerelease();
|
public abstract Property<String> getAntoraPrerelease();
|
||||||
|
|
||||||
@Input
|
@Input
|
||||||
|
@Optional
|
||||||
public abstract Property<String> getAntoraDisplayVersion();
|
public abstract Property<String> getAntoraDisplayVersion();
|
||||||
|
|
||||||
public static class AntoraYml {
|
public static class AntoraYml {
|
||||||
|
|
Loading…
Reference in New Issue