diff --git a/build.sbt b/build.sbt index c1cdd8c..866dfdb 100644 --- a/build.sbt +++ b/build.sbt @@ -29,7 +29,11 @@ libraryDependencies += "org.scalatest" %% "scalatest" % "3.2.18" % credentials += Credentials(Path.userHome / ".sbt" / "sonatype_credentials") Test / fork := true -javaOptions ++= Seq("-Xms512M", "-Xmx2048M", "-XX:+CMSClassUnloadingEnabled", "-Duser.timezone=GMT") +javaOptions ++= { + Seq("-Xms512M", "-Xmx2048M", "-Duser.timezone=GMT") ++ (if (System.getProperty("java.version").startsWith("1.8.0")) + Seq("-XX:+CMSClassUnloadingEnabled") + else Seq.empty) +} licenses := Seq("MIT" -> url("http://opensource.org/licenses/MIT")) homepage := Some(url("https://github.com/mrpowers-io/spark-fast-tests"))