Skip to content

Commit

Permalink
Merge pull request wildfly#18672 from ropalka/WFLY-20197
Browse files Browse the repository at this point in the history
[WFLY-20197] Use ModuleDependency.Builder instead of deprecated ModuleDependency ctor in MP CONFIG
  • Loading branch information
bstansberry authored Jan 18, 2025
2 parents 615826c + 494b512 commit 878ea69
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ private void addDependencies(DeploymentUnit deploymentUnit) {
final ModuleSpecification moduleSpecification = deploymentUnit.getAttachment(Attachments.MODULE_SPECIFICATION);
final ModuleLoader moduleLoader = Module.getBootModuleLoader();

moduleSpecification.addSystemDependency(new ModuleDependency(moduleLoader, "org.eclipse.microprofile.config.api", false, false, true, false));
moduleSpecification.addSystemDependency(new ModuleDependency(moduleLoader, "io.smallrye.config", false, false, true, false));
moduleSpecification.addSystemDependency(ModuleDependency.Builder.of(moduleLoader, "org.eclipse.microprofile.config.api").setImportServices(true).build());
moduleSpecification.addSystemDependency(ModuleDependency.Builder.of(moduleLoader, "io.smallrye.config").setImportServices(true).build());
}

}

0 comments on commit 878ea69

Please sign in to comment.