Skip to content

Commit

Permalink
Require Java 8 or 11
Browse files Browse the repository at this point in the history
  • Loading branch information
ZiluTian committed Apr 4, 2024
1 parent dc92b72 commit 022a800
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,14 @@ run / fork := true

val pubLocal = Option(System.getProperty("pubLocal")).getOrElse("false")

initialize := {
val _ = initialize.value // run the previous initialization
val java8 = "1.8"
val java11 = "11"
val current = sys.props("java.specification.version")
assert(current == java8 || current == java11, s"Unsupported JDK: java.specification.version $current != $java8 or $java11")
}

lazy val commonSettings = Seq(
libraryDependencies += "org.scalatest" %% "scalatest" % scalaTestVersion % "test",
libraryDependencies += "org.scalanlp" %% "breeze" % breezeVersion,
Expand Down

0 comments on commit 022a800

Please sign in to comment.