Package io.quarkus.deployment.pkg
Interface PackageConfig
Packaging the application
Configuration relating to creating a packaged output.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interface
Configuration for the decompiler.static interface
Configuration for creating packages as JARs. -
Method Summary
Modifier and TypeMethodDescriptiondefault String
Returns the runner suffix ifaddRunnerSuffix
istrue
., or an empty string otherwise
jar()
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.boolean
Setting this switch totrue
will 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
QuarkusMain
then 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 totrue
will 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/classes
being 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 ifaddRunnerSuffix
istrue
, or an empty string otherwise.
- Returns:
- the runner suffix if
addRunnerSuffix
istrue
, or an empty string otherwise
-