build scripts: fixed converting library name to file name

This commit is contained in:
nik
2017-10-12 10:08:37 +03:00
parent 902a225713
commit 4f7e191b5f
@@ -34,7 +34,7 @@ task setupBuildScriptsDeps(dependsOn: configurations.buildScriptsDeps, type: Syn
}
private String loadLibraryMavenId(String libraryName) {
File file = new File(project.rootDir, "../../.idea/libraries/${libraryName}.xml")
File file = new File(project.rootDir, "../../.idea/libraries/${libraryName.replace('-', '_')}.xml")
if (!file.exists()) {
throw new GradleException("Cannot find $libraryName project library: $file doesn't exist")
}