diff --git a/build.sbt b/build.sbt index bb46990c5d..c26adbec6b 100644 --- a/build.sbt +++ b/build.sbt @@ -39,11 +39,9 @@ crossScalaVersionsFromTravis in Global := { val manifest = (baseDirectory in ThisBuild).value / ".travis.yml" import collection.JavaConverters._ Using.fileInputStream(manifest) { fis => - List(new org.yaml.snakeyaml.Yaml().load(fis)) - .collect { case map: java.util.Map[_, _] => map.asScala.toList } - .flatMap(_.collect { - case (k: String, v: String) if k.contains("scala_version_") => v - }) + new org.yaml.snakeyaml.Yaml().loadAs(fis, classOf[java.util.Map[_, _]]).asScala.toList.collect { + case (k: String, v: String) if k.contains("scala_version_") => v + } } } diff --git a/project/build.sbt b/project/build.sbt index 11c22d8f31..e70d55ddd9 100644 --- a/project/build.sbt +++ b/project/build.sbt @@ -1 +1 @@ -libraryDependencies += "org.yaml" % "snakeyaml" % "1.24" +libraryDependencies += "org.yaml" % "snakeyaml" % "1.25"