Skip to content

Commit 882d64d

Browse files
authored
feat: add @PluginProperty group annotations from taxonomy (#93)
Co-authored-by: François Delbrayelle <fdelbrayelle@kestra.io>
1 parent 624c079 commit 882d64d

1 file changed

Lines changed: 8 additions & 4 deletions

File tree

src/main/java/io/kestra/plugin/soda/AbstractSoda.java

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -49,30 +49,32 @@ public abstract class AbstractSoda extends Task {
4949
description = "Deprecated, use 'taskRunner' instead"
5050
)
5151
@Deprecated
52+
@PluginProperty(group = "execution")
5253
protected Property<RunnerType> runner;
5354

5455
@Schema(
5556
title = "Deprecated, use 'taskRunner' instead"
5657
)
57-
@PluginProperty
58+
@PluginProperty(group = "execution")
5859
@Deprecated
5960
private DockerOptions docker;
6061

6162
@Schema(
6263
title = "The task runner to use.",
6364
description = "Task runners are provided by plugins, each have their own properties."
6465
)
65-
@PluginProperty
66+
@PluginProperty(group = "execution")
6667
@Builder.Default
6768
@Valid
6869
private TaskRunner<?> taskRunner = Docker.instance();
6970

7071
@Schema(title = "The task runner container image, only used if the task runner is container-based.")
7172
@Builder.Default
73+
@PluginProperty(group = "execution")
7274
private Property<String> containerImage = Property.ofValue(DEFAULT_IMAGE);
7375

7476
@Schema(title = "Deprecated, use the `docker` property instead", deprecated = true)
75-
@PluginProperty
77+
@PluginProperty(group = "advanced")
7678
@Deprecated
7779
private DockerOptions dockerOptions;
7880

@@ -87,7 +89,7 @@ public void setDockerOptions(DockerOptions dockerOptions) {
8789
description = "You can define the files as map or a JSON string. " +
8890
"Each file can be defined inlined or can reference a file from Kestra's internal storage."
8991
)
90-
@PluginProperty(
92+
@PluginProperty(group = "source",
9193
additionalProperties = String.class,
9294
dynamic = true
9395
)
@@ -97,11 +99,13 @@ public void setDockerOptions(DockerOptions dockerOptions) {
9799
title = "List of python dependencies to add to the python execution process",
98100
description = "Python dependencies list to setup in the virtualenv, in the same format than requirements.txt. It must at least provides dbt."
99101
)
102+
@PluginProperty(group = "advanced")
100103
protected Property<List<String>> requirements;
101104

102105
@Schema(
103106
title = "Additional environment variables for the current process."
104107
)
108+
@PluginProperty(group = "execution")
105109
protected Property<Map<String, String>> env;
106110

107111
@Schema(

0 commit comments

Comments
 (0)