Switch main-kts to the updated resolvers infrastructure

This commit is contained in:
Ilya Chernikov
2019-11-15 16:31:11 +01:00
parent baec10fb40
commit b73625ad9e
7 changed files with 106 additions and 47 deletions
@@ -33,7 +33,7 @@ class FileSystemDependenciesResolver(vararg paths: File) : ExternalDependenciesR
// TODO: add coordinates and wildcard matching
val file = if (repo == null) File(artifactCoordinates) else File(repo, artifactCoordinates)
when {
!file.exists() -> messages.add("File '$file' does not exists")
!file.exists() -> messages.add("File '$file' not found")
!file.isFile && !file.isDirectory -> messages.add("Path '$file' is neither file nor directory")
else -> return ResultWithDiagnostics.Success(listOf(file))
}