{"record":{"id":"8d5e877d0952be16","repo":"GoogleContainerTools/jib","slug":"invalid-value-for-containerizingmode-invalidcon-8d5e87","errorCode":null,"errorMessage":"invalid value for containerizingMode: ${invalidContainerizingMode}","messagePattern":"invalid value for containerizingMode: (.+?)","errorType":"validation","errorClass":"GradleException","httpStatus":null,"severity":"error","filePath":"jib-gradle-plugin/src/main/java/com/google/cloud/tools/jib/gradle/BuildImageTask.java","lineNumber":129,"sourceCode":"                \"'jib.to.image'\",\n                \"build.gradle\",\n                \"gradle jib --image <your image name>\"));\n      }\n\n      PluginConfigurationProcessor.createJibBuildRunnerForRegistryImage(\n              new GradleRawConfiguration(jibExtension),\n              ignored -> Optional.empty(),\n              projectProperties,\n              globalConfig,\n              new GradleHelpfulSuggestions(HELPFUL_SUGGESTIONS_PREFIX))\n          .runBuild();\n\n    } catch (InvalidAppRootException ex) {\n      throw new GradleException(\n          \"container.appRoot is not an absolute Unix-style path: \" + ex.getInvalidPathValue(), ex);\n\n    } catch (InvalidContainerizingModeException ex) {\n      throw new GradleException(\n          \"invalid value for containerizingMode: \" + ex.getInvalidContainerizingMode(), ex);\n\n    } catch (InvalidWorkingDirectoryException ex) {\n      throw new GradleException(\n          \"container.workingDirectory is not an absolute Unix-style path: \"\n              + ex.getInvalidPathValue(),\n          ex);\n    } catch (InvalidPlatformException ex) {\n      throw new GradleException(\n          \"from.platforms contains a platform configuration that is missing required values or has invalid values: \"\n              + ex.getMessage()\n              + \": \"\n              + ex.getInvalidPlatform(),\n          ex);\n\n    } catch (InvalidContainerVolumeException ex) {\n      throw new GradleException(\n          \"container.volumes is not an absolute Unix-style path: \" + ex.getInvalidVolume(), ex);","sourceCodeStart":111,"sourceCodeEnd":147,"githubUrl":"https://github.com/GoogleContainerTools/jib/blob/fb949e2676afbbd7dd7a1ef61e20251931325654/jib-gradle-plugin/src/main/java/com/google/cloud/tools/jib/gradle/BuildImageTask.java#L111-L147","documentation":"Jib validates containerizingMode against a fixed set of allowed values (exploded, packaged). An InvalidContainerizingModeException is thrown when jib.containerizingMode has any other value, and the Gradle task surfaces it as this error. The mode controls whether the app is copied as exploded directories or a packaged jar.","triggerScenarios":"Setting jib.containerizingMode to a misspelled or unsupported value (e.g. 'explode', ' Exploded', 'war') in build.gradle or via -Djib.containerizingMode=... before running a jib task.","commonSituations":"Typos when enabling the faster exploded mode; following an outdated blog post using a removed/renamed mode value; setting the system property with surrounding whitespace or wrong case; using 'packaged' with an older plugin version that doesn't support it.","solutions":["Set containerizingMode to exactly 'exploded' or 'packaged' (lowercase, no whitespace).","Remove the containerizingMode setting to use the default ('exploded').","Check the plugin version supports the chosen mode (packaged was added later; upgrade the plugin if needed)."],"exampleFix":"// before\njib {\n  containerizingMode = 'explode'\n}\n// after\njib {\n  containerizingMode = 'exploded'\n}","handlingStrategy":"validation","validationCode":"def mode = jib.containerizingMode\nif (mode != null && !(mode in ['exploded', 'packaged'])) {\n  throw new GradleException(\"containerizingMode must be 'exploded' or 'packaged', got: $mode\")\n}","typeGuard":null,"tryCatchPattern":"try {\n  tasks.named('jib').get().execute()\n} catch (GradleException e) {\n  if (e.message?.startsWith('invalid value for containerizingMode')) {\n    logger.error(\"Use 'exploded' or 'packaged': ${e.message}\")\n  }\n  throw e\n}","preventionTips":["Copy allowed values verbatim from plugin docs for your plugin version.","Avoid constructing the mode string dynamically (trailing whitespace/case bugs).","Upgrade the plugin before using newer modes like 'packaged'."],"tags":["gradle","jib","configuration","enum-validation"],"backgroundTag":"invalid-enum-value","analyzedSha":"fb949e2676afbbd7dd7a1ef61e20251931325654","analyzedAt":"2026-09-06T14:04:09.491Z","contentChangedAt":"2026-09-06T14:04:09.491Z","schemaVersion":2},"datasetVersion":"2026-09-14T05:17:10.506Z"}