You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if (!sbomEnabledForNativeImage && !enableAugmentedSBOM) {
128
+
/* Omit showing a hint to use SBOM since the Native Image build output will include such a hint. */
129
+
return;
130
+
}
131
+
132
+
if (!isOracleGraalVM()) {
133
+
if (enableAugmentedSBOM) {
134
+
thrownewIllegalArgumentException(
135
+
String.format("Configuration option %s is only supported in %s.", enableAugmentedSBOMParamName, ORACLE_GRAALVM_IDENTIFIER));
136
+
}
137
+
return;
138
+
}
139
+
140
+
if (!enableAugmentedSBOM) {
141
+
if (checkAugmentedSBOMSupportedByVersion(false)) {
142
+
logger.info(String.format("Set configuration option %s to true to create an enhanced and more accurate SBOM.", enableAugmentedSBOMParamName));
143
+
}
144
+
return;
145
+
}
146
+
147
+
checkAugmentedSBOMSupportedByVersion(true);
148
+
if (!sbomEnabledForNativeImage) {
149
+
logger.info(String.format("Automatically added build argument %s with default options to Native Image because configuration option %s was set to true. " +
150
+
"An SBOM will be embedded in the image.", sbomNativeImageFlag, enableAugmentedSBOMParamName));
0 commit comments