Skip to content

Commit

Permalink
Use scalajs with fixed UUID generation
Browse files Browse the repository at this point in the history
  • Loading branch information
daddykotex committed Apr 13, 2022
1 parent 6dca2ad commit 178919d
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
13 changes: 12 additions & 1 deletion build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -486,7 +486,12 @@ lazy val json = projectMatrix
Test / fork := virtualAxes.value.contains(VirtualAxis.jvm)
)
.jvmPlatform(allJvmScalaVersions, jvmDimSettings)
.jsPlatform(allJsScalaVersions, jsDimSettings)
.jsPlatform(
allJsScalaVersions,
jsDimSettings ++ Seq(
libraryDependencies += Dependencies.ScalaJS.scalaJsJavaSecureRandom.value
)
)

/**
* Module that contains http4s-specific client/server bindings for the
Expand Down Expand Up @@ -634,6 +639,12 @@ val isCE3 = settingKey[Boolean]("Is the current build using CE3?")

lazy val Dependencies = new {

object ScalaJS {
val scalaJsJavaSecureRandom: Def.Initialize[ModuleID] = Def.setting(
"org.scala-js" %%% "scalajs-java-securerandom" % "1.0.0"
)
}

val collectionsCompat =
Def.setting(
"org.scala-lang.modules" %%% "scala-collection-compat" % "2.7.0"
Expand Down
2 changes: 1 addition & 1 deletion project/plugins.sbt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// format: off
addSbtPlugin("ch.epfl.scala" % "sbt-scalafix" % "0.9.34")
addSbtPlugin("org.scala-js" % "sbt-scalajs" % "1.9.0")
addSbtPlugin("org.scala-js" % "sbt-scalajs" % "1.10.0")
addSbtPlugin("com.github.sbt" % "sbt-pgp" % "2.1.2")
addSbtPlugin("com.dwijnand" % "sbt-dynver" % "4.1.1")
addSbtPlugin("org.xerial.sbt" % "sbt-sonatype" % "3.9.11")
Expand Down

0 comments on commit 178919d

Please sign in to comment.