Chapter 6. Configuring the Java compiler
By default, the Quarkus Maven plug-in passes compiler flags to the javac
command from the maven-compiler-plugin
plug-in.
Procedure
To customize the compiler flags used in development mode, add a
configuration
section to theplugin
block and set thecompilerArgs
property. You can also setsource
,target
, andjvmArgs
. For example, to pass--enable-preview
to both the JVM andjavac
add the following lines:Copy to Clipboard Copied! Toggle word wrap Toggle overflow