void () { setupInitialProject(); final Map<String, JpsModule> modules = setupModules(); final JpsModule moduleA = modules.get("A"); assertNotNull(moduleA); JpsLibrary library = addLibrary("moduleA/lib/util.jar"); JpsModuleRootModificationUtil.addDependency(moduleA, library, JpsJavaDependencyScope.COMPILE, true); doTestBuild(1).assertSuccessful(); }