Package io.quarkus.deployment.pkg
Interface PackageConfig
Packaging the application
Configuration relating to creating a packaged output.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceConfiguration for the decompiler.static interfaceConfiguration for creating packages as JARs. -
Method Summary
Modifier and TypeMethodDescriptiondefault StringReturns the runner suffix ifaddRunnerSuffixistrue., or an empty string otherwisejar()Configuration which applies to building a JAR file for the project.The entry point of the application.The directory into which the output package(s) should be written.The name of the final artifact, excluding the suffix and file extension.The suffix that is applied to the runner artifact's base file name.booleanSetting this switch totruewill cause Quarkus to write the transformed application bytecode to the build tool's output directory.
-
Method Details
-
jar
PackageConfig.JarConfig jar()Configuration which applies to building a JAR file for the project. -
mainClass
The entry point of the application. This can either be a fully qualified name of a standard Java class with a main method, orQuarkusApplication.If your application has main classes annotated with
QuarkusMainthen this can also reference the name given in the annotation, to avoid the need to specify fully qualified names in the config. -
outputDirectory
The directory into which the output package(s) should be written. Relative paths are resolved from the build systems target directory. -
outputName
The name of the final artifact, excluding the suffix and file extension. -
writeTransformedBytecodeToBuildOutput
@WithDefault("false") boolean writeTransformedBytecodeToBuildOutput()Setting this switch totruewill cause Quarkus to write the transformed application bytecode to the build tool's output directory. This is useful for post-build tools that need to scan the application bytecode (for example, offline code-coverage tools).For example, if using Maven, enabling this feature will result in the classes in
target/classesbeing replaced with classes that have been transformed by Quarkus.Setting this to
true, however, should be done with a lot of caution and only if subsequent builds are done in a clean environment (i.e. the build tool's output directory has been completely cleaned). -
runnerSuffix
The suffix that is applied to the runner artifact's base file name. -
computedRunnerSuffix
Returns the runner suffix ifaddRunnerSuffixistrue, or an empty string otherwise.- Returns:
- the runner suffix if
addRunnerSuffixistrue, or an empty string otherwise
-