How to call generator with deprecated D arguments?
Created by: Pe-te
Hi folks, when I run the following command:
export JAVA_OPTS="${JAVA_OPTS} -Dlog.level=warn"
openapi-generator generate -g kotlin -D models -D apis --library jvm-retrofit2 -i "${YAML_FILE}" -o "${KOTLIN_PATH}" --additional-properties=serializationLibrary=gson
I get this deprecation message:
[DEPRECATED] -D arguments after 'generate' are application arguments and not Java System Properties, please consider changing to -p, or apply your options to JAVA_OPTS, or move the -D arguments before the jar option.
I tried different combinations and positions and couldn't get rid of it. What would be the correct way to call the generator?
macOS, homebrew, openapi-generator 4.2.3