@@ -51,6 +51,9 @@ public class InitializrMetadata {
51
51
private final SingleSelectCapability languages = new SingleSelectCapability ("language" , "Language" ,
52
52
"programming language" );
53
53
54
+ private final SingleSelectCapability configurationFileFormats = new SingleSelectCapability (
55
+ "configurationFileFormat" , "Configuration File Format" , "configuration file format" );
56
+
54
57
private final TextCapability name = new TextCapability ("name" , "Name" , "project name (infer application name)" );
55
58
56
59
private final TextCapability description = new TextCapability ("description" , "Description" , "project description" );
@@ -99,6 +102,10 @@ public SingleSelectCapability getLanguages() {
99
102
return this .languages ;
100
103
}
101
104
105
+ public SingleSelectCapability getConfigurationFileFormats () {
106
+ return this .configurationFileFormats ;
107
+ }
108
+
102
109
public TextCapability getName () {
103
110
return this .name ;
104
111
}
@@ -135,6 +142,7 @@ public void merge(InitializrMetadata other) {
135
142
this .packagings .merge (other .packagings );
136
143
this .javaVersions .merge (other .javaVersions );
137
144
this .languages .merge (other .languages );
145
+ this .configurationFileFormats .merge (other .configurationFileFormats );
138
146
this .name .merge (other .name );
139
147
this .description .merge (other .description );
140
148
this .groupId .merge (other .groupId );
@@ -247,6 +255,7 @@ public Map<String, Object> defaults() {
247
255
defaults .put ("packaging" , defaultId (this .packagings ));
248
256
defaults .put ("javaVersion" , defaultId (this .javaVersions ));
249
257
defaults .put ("language" , defaultId (this .languages ));
258
+ defaults .put ("configurationFileFormat" , defaultId (this .configurationFileFormats ));
250
259
defaults .put ("groupId" , this .groupId .getContent ());
251
260
defaults .put ("artifactId" , this .artifactId .getContent ());
252
261
defaults .put ("version" , this .version .getContent ());
0 commit comments