Skip to content

Commit 097802b

Browse files
authored
feat: add defaultValue to @Setting (#53)
* Add defaultValue field * Sync root project name with the repository name
1 parent 4299ce8 commit 097802b

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

runtime-metamodel/src/main/java/org/eclipse/edc/runtime/metamodel/annotation/Setting.java

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
*
1010
* Contributors:
1111
* Microsoft Corporation - initial API and implementation
12+
* Bayerische Motoren Werke Aktiengesellschaft (BMW AG) - improvements
1213
*
1314
*/
1415

@@ -35,6 +36,13 @@
3536

3637
String type() default "string";
3738

39+
/**
40+
* The setting default value. Empty string if no default value is provided
41+
*
42+
* @return the setting's default value
43+
*/
44+
String defaultValue() default "";
45+
3846
long min() default Long.MIN_VALUE;
3947

4048
long max() default Long.MAX_VALUE;

settings.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
rootProject.name = "edcPlugins"
1+
rootProject.name = "GradlePlugins"
22
include("plugins:module-names")
33
include("plugins:test-summary")
44
include("plugins:openapi-merger")

0 commit comments

Comments
 (0)