Skip to content

Commit

Permalink
feat: add defaultValue to @Setting (#53)
Browse files Browse the repository at this point in the history
* Add defaultValue field

* Sync root project name with the repository name
  • Loading branch information
ndr-brt authored Nov 21, 2022
1 parent 4299ce8 commit 097802b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
*
* Contributors:
* Microsoft Corporation - initial API and implementation
* Bayerische Motoren Werke Aktiengesellschaft (BMW AG) - improvements
*
*/

Expand All @@ -35,6 +36,13 @@

String type() default "string";

/**
* The setting default value. Empty string if no default value is provided
*
* @return the setting's default value
*/
String defaultValue() default "";

long min() default Long.MIN_VALUE;

long max() default Long.MAX_VALUE;
Expand Down
2 changes: 1 addition & 1 deletion settings.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
rootProject.name = "edcPlugins"
rootProject.name = "GradlePlugins"
include("plugins:module-names")
include("plugins:test-summary")
include("plugins:openapi-merger")
Expand Down

0 comments on commit 097802b

Please sign in to comment.