diff --git a/logging/src/main/java/org/jboss/as/logging/deployments/LoggingDependencyDeploymentProcessor.java b/logging/src/main/java/org/jboss/as/logging/deployments/LoggingDependencyDeploymentProcessor.java index 2004fcf0e23..fb9f0bd262a 100644 --- a/logging/src/main/java/org/jboss/as/logging/deployments/LoggingDependencyDeploymentProcessor.java +++ b/logging/src/main/java/org/jboss/as/logging/deployments/LoggingDependencyDeploymentProcessor.java @@ -37,7 +37,7 @@ public void deploy(final DeploymentPhaseContext phaseContext) { try { LoggingLogger.ROOT_LOGGER.tracef("Adding module '%s' to deployment '%s'", moduleId, deploymentUnit.getName()); moduleLoader.loadModule(moduleId); - moduleSpecification.addSystemDependency(new ModuleDependency(moduleLoader, moduleId, false, false, moduleDep.isImportServices(), false)); + moduleSpecification.addSystemDependency(ModuleDependency.Builder.of(moduleLoader, moduleId).setImportServices(moduleDep.isImportServices()).build()); } catch (ModuleLoadException ex) { LoggingLogger.ROOT_LOGGER.debugf("Module not found: %s", moduleId); }