@@ -417,9 +417,9 @@ public void processOpts() {
417417 if (hasConflict ) {
418418 LOGGER .warn ("You specified RxJava versions 1 and 2 and 3 or Coroutines together, please choose one of them." );
419419 } else if (hasRx3 ) {
420- this . setUseRxJava3 (Boolean . parseBoolean ( additionalProperties . get ( USE_RX_JAVA3 ). toString () ));
420+ setUseRxJava3 (convertPropertyToBooleanAndWriteBack ( USE_RX_JAVA3 ));
421421 } else if (hasCoroutines ) {
422- this . setUseCoroutines (Boolean . parseBoolean ( additionalProperties . get ( USE_COROUTINES ). toString () ));
422+ setUseCoroutines (convertPropertyToBooleanAndWriteBack ( USE_COROUTINES ));
423423 }
424424
425425 if (!hasRx3 && !hasCoroutines ) {
@@ -447,7 +447,11 @@ public void processOpts() {
447447 }
448448
449449 if (additionalProperties .containsKey (OMIT_GRADLE_WRAPPER )) {
450- setOmitGradleWrapper (Boolean .parseBoolean (additionalProperties .get (OMIT_GRADLE_WRAPPER ).toString ()));
450+ setOmitGradleWrapper (convertPropertyToBooleanAndWriteBack (OMIT_GRADLE_WRAPPER ));
451+ }
452+
453+ if (additionalProperties .containsKey (USE_SPRING_BOOT3 )) {
454+ convertPropertyToBooleanAndWriteBack (USE_SPRING_BOOT3 );
451455 }
452456
453457 if (additionalProperties .containsKey (CodegenConstants .SERIALIZATION_LIBRARY )) {
@@ -467,13 +471,12 @@ public void processOpts() {
467471 }
468472
469473 if (additionalProperties .containsKey (GENERATE_ONEOF_ANYOF_WRAPPERS )) {
470- setGenerateOneOfAnyOfWrappers (Boolean . parseBoolean ( additionalProperties . get ( GENERATE_ONEOF_ANYOF_WRAPPERS ). toString () ));
474+ setGenerateOneOfAnyOfWrappers (convertPropertyToBooleanAndWriteBack ( GENERATE_ONEOF_ANYOF_WRAPPERS ));
471475 }
472476
473477 if (additionalProperties .containsKey (FAIL_ON_UNKNOWN_PROPERTIES )) {
474- setFailOnUnknownProperties (Boolean . parseBoolean ( additionalProperties . get ( FAIL_ON_UNKNOWN_PROPERTIES ). toString () ));
478+ setFailOnUnknownProperties (convertPropertyToBooleanAndWriteBack ( FAIL_ON_UNKNOWN_PROPERTIES ));
475479 } else {
476- additionalProperties .put (FAIL_ON_UNKNOWN_PROPERTIES , false );
477480 setFailOnUnknownProperties (false );
478481 }
479482
0 commit comments