Package io.quarkus.deployment.pkg.steps
Class JarResultBuildStep
- java.lang.Object
-
- io.quarkus.deployment.pkg.steps.JarResultBuildStep
-
public class JarResultBuildStep extends Object
This build step builds both the thin jars and uber jars. The way this is built is a bit convoluted. In general we only want a single one built, as determined by thePackageConfig
(unless the config explicitly asks for both of them) However we still need an extension to be able to ask for a specify one of these despite the config, e.g. if a serverless environment needs an uberjar to build its deployment package then we need to be able to provide this. To enable this we have two build steps that strongly produce the respective artifact type build items, but not aArtifactResultBuildItem
. We then have another two build steps that only run if they are configured too that consume these explicit build items and transform them intoArtifactResultBuildItem
.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) static class
JarResultBuildStep.JarRequired
-
Field Summary
Fields Modifier and Type Field Description static String
APP
static String
APPMODEL_DAT
static String
BOOT_LIB
static String
BUILD_SYSTEM_PROPERTIES
static String
DEFAULT_FAST_JAR_DIRECTORY_NAME
static String
DEPLOYMENT_CLASS_PATH_DAT
static String
DEPLOYMENT_LIB
static String
GENERATED_BYTECODE_JAR
static String
LIB
static String
MAIN
static String
MP_CONFIG_FILE
static String
QUARKUS
static String
QUARKUS_APP_DEPS
static String
QUARKUS_RUN_JAR
static String
TRANSFORMED_BYTECODE_JAR
-
Constructor Summary
Constructors Constructor Description JarResultBuildStep()
-
Method Summary
-
-
-
Field Detail
-
DEPLOYMENT_CLASS_PATH_DAT
public static final String DEPLOYMENT_CLASS_PATH_DAT
- See Also:
- Constant Field Values
-
BUILD_SYSTEM_PROPERTIES
public static final String BUILD_SYSTEM_PROPERTIES
- See Also:
- Constant Field Values
-
DEPLOYMENT_LIB
public static final String DEPLOYMENT_LIB
- See Also:
- Constant Field Values
-
APPMODEL_DAT
public static final String APPMODEL_DAT
- See Also:
- Constant Field Values
-
QUARKUS_RUN_JAR
public static final String QUARKUS_RUN_JAR
- See Also:
- Constant Field Values
-
QUARKUS_APP_DEPS
public static final String QUARKUS_APP_DEPS
- See Also:
- Constant Field Values
-
BOOT_LIB
public static final String BOOT_LIB
- See Also:
- Constant Field Values
-
LIB
public static final String LIB
- See Also:
- Constant Field Values
-
MAIN
public static final String MAIN
- See Also:
- Constant Field Values
-
GENERATED_BYTECODE_JAR
public static final String GENERATED_BYTECODE_JAR
- See Also:
- Constant Field Values
-
TRANSFORMED_BYTECODE_JAR
public static final String TRANSFORMED_BYTECODE_JAR
- See Also:
- Constant Field Values
-
APP
public static final String APP
- See Also:
- Constant Field Values
-
QUARKUS
public static final String QUARKUS
- See Also:
- Constant Field Values
-
DEFAULT_FAST_JAR_DIRECTORY_NAME
public static final String DEFAULT_FAST_JAR_DIRECTORY_NAME
- See Also:
- Constant Field Values
-
MP_CONFIG_FILE
public static final String MP_CONFIG_FILE
- See Also:
- Constant Field Values
-
-
Method Detail
-
outputTarget
OutputTargetBuildItem outputTarget(BuildSystemTargetBuildItem bst, PackageConfig packageConfig)
-
jarOutput
ArtifactResultBuildItem jarOutput(JarBuildItem jarBuildItem)
-
buildRunnerJar
public JarBuildItem buildRunnerJar(CurateOutcomeBuildItem curateOutcomeBuildItem, OutputTargetBuildItem outputTargetBuildItem, TransformedClassesBuildItem transformedClasses, ApplicationArchivesBuildItem applicationArchivesBuildItem, ApplicationInfoBuildItem applicationInfo, PackageConfig packageConfig, ClassLoadingConfig classLoadingConfig, List<GeneratedClassBuildItem> generatedClasses, List<GeneratedResourceBuildItem> generatedResources, List<UberJarRequiredBuildItem> uberJarRequired, List<UberJarMergedResourceBuildItem> uberJarMergedResourceBuildItems, List<UberJarIgnoredResourceBuildItem> uberJarIgnoredResourceBuildItems, List<LegacyJarRequiredBuildItem> legacyJarRequired, QuarkusBuildCloseablesBuildItem closeablesBuildItem, List<AdditionalApplicationArchiveBuildItem> additionalApplicationArchiveBuildItems, MainClassBuildItem mainClassBuildItem, Optional<AppCDSRequestedBuildItem> appCDS) throws Exception
- Throws:
Exception
-
buildNativeImageJar
public NativeImageSourceJarBuildItem buildNativeImageJar(CurateOutcomeBuildItem curateOutcomeBuildItem, OutputTargetBuildItem outputTargetBuildItem, TransformedClassesBuildItem transformedClasses, ApplicationArchivesBuildItem applicationArchivesBuildItem, ApplicationInfoBuildItem applicationInfo, PackageConfig packageConfig, List<GeneratedClassBuildItem> generatedClasses, List<GeneratedNativeImageClassBuildItem> nativeImageResources, List<GeneratedResourceBuildItem> generatedResources, MainClassBuildItem mainClassBuildItem, List<UberJarRequiredBuildItem> uberJarRequired, List<UberJarMergedResourceBuildItem> mergeResources, ClassLoadingConfig classLoadingConfig, List<UberJarIgnoredResourceBuildItem> ignoreResources) throws Exception
Native images are built from a specially created jar file. This allows for changes in how the jar file is generated.- Throws:
Exception
-
isBlockOrSF
static boolean isBlockOrSF(String s)
-
-