Skip to content

Commit

Permalink
Merge pull request #153 from alfonsorr/152-prevent-errors-using-new-v…
Browse files Browse the repository at this point in the history
…ersions-of-java

Newer versions of java dont accept CMSClassUnloadingEnabled option
  • Loading branch information
SemyonSinchenko authored Sep 7, 2024
2 parents 57fb54a + 9258e8c commit dc600c6
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -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:/mrpowers-io/spark-fast-tests"))
Expand Down

0 comments on commit dc600c6

Please sign in to comment.