Skip to content

Commit

Permalink
Cross-build Scala (#17)
Browse files Browse the repository at this point in the history
* Cross-build Scala

* Adds parenthesis - fixes compilation issue
  • Loading branch information
juanpedromoreno authored Jun 29, 2020
1 parent b5d661c commit d8ab362
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
6 changes: 3 additions & 3 deletions build.sbt
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
ThisBuild / organization := "org.scala-exercises"
ThisBuild / githubOrganization := "47degrees"
ThisBuild / scalaVersion := V.scala
ThisBuild / scalaVersion := "2.13.3"
ThisBuild / crossScalaVersions := Seq("2.13.3", "2.12.11")

publish / skip := true

addCommandAlias("ci-test", "scalafmtCheckAll; scalafmtSbtCheck; test")
addCommandAlias("ci-test", "scalafmtCheckAll; scalafmtSbtCheck; +test")
addCommandAlias("ci-docs", "github; mdoc; headerCreateAll")
addCommandAlias("ci-publish", "github; ci-release")

Expand All @@ -13,7 +14,6 @@ lazy val V = new {
val circe: String = "0.13.0"
val classutil: String = "1.5.1"
val http4s: String = "0.21.6"
val scala: String = "2.13.2"
val scalatest: String = "3.2.0"
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,8 @@ object Exercises {
.getURLs
.map(url => new File(url.getFile)) filter (_.exists)).toSeq
val classFinder = ClassFinder(files, Some(Opcodes.ASM7))
val classes = classFinder.getClasses
val classes = classFinder
.getClasses()
.filter(Try(_).isSuccess)
.toList
ClassFinder.classInfoMap(classes.iterator)
Expand Down

0 comments on commit d8ab362

Please sign in to comment.