Skip to content

Commit

Permalink
[WFLY-20175] Use ModuleDependency.Builder instead of deprecated Modul…
Browse files Browse the repository at this point in the history
…eDependency ctor in JAKARTA DATA
  • Loading branch information
ropalka committed Dec 18, 2024
1 parent 4630125 commit d054abd
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -171,8 +171,8 @@ public void deploy(DeploymentPhaseContext phaseContext) {

private static void addDependencies(ModuleSpecification moduleSpecification, ModuleLoader moduleLoader,
DeploymentUnit deploymentUnit, String... moduleIdentifiers) {
for ( String moduleIdentifier : moduleIdentifiers) {
moduleSpecification.addSystemDependency(new ModuleDependency(moduleLoader, moduleIdentifier, false, false, true, false));
for (String moduleIdentifier : moduleIdentifiers) {
moduleSpecification.addSystemDependency(ModuleDependency.Builder.of(moduleLoader, moduleIdentifier).setImportServices(true).build());
ROOT_LOGGER.debugf("added %s dependency to %s", moduleIdentifier, deploymentUnit.getName());
}
}
Expand Down

0 comments on commit d054abd

Please sign in to comment.