Skip to content

Commit

Permalink
Merge pull request #103 from scala-steward/update/zio-laws-laws-1.0.0…
Browse files Browse the repository at this point in the history
…-RC21

Update zio-laws-laws, zio-prelude to 1.0.0-RC21
  • Loading branch information
fwbrasil authored Sep 20, 2023
2 parents ff1b21a + 7d08d4c commit 6e13880
Showing 1 changed file with 21 additions and 21 deletions.
42 changes: 21 additions & 21 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -101,8 +101,8 @@ lazy val `kyo-core-settings` = `kyo-settings` ++ Seq(
libraryDependencies += "dev.zio" %%% "zio-test" % zioVersion % Test,
libraryDependencies += "dev.zio" %%% "zio-test-magnolia" % zioVersion % Test,
libraryDependencies += "dev.zio" %%% "zio-test-sbt" % zioVersion % Test,
libraryDependencies += "dev.zio" %%% "zio-prelude" % "1.0.0-RC20" % Test,
libraryDependencies += "dev.zio" %%% "zio-laws-laws" % "1.0.0-RC20" % Test,
libraryDependencies += "dev.zio" %%% "zio-prelude" % "1.0.0-RC21" % Test,
libraryDependencies += "dev.zio" %%% "zio-laws-laws" % "1.0.0-RC21" % Test,
libraryDependencies += "org.scalatest" %%% "scalatest" % "3.2.16" % Test,
testFrameworks += new TestFramework("zio.test.sbt.ZTestFramework"),
Global / concurrentRestrictions := Seq(
Expand Down Expand Up @@ -236,32 +236,32 @@ lazy val rewriteReadmeFile = taskKey[Unit]("Rewrite README file")

addCommandAlias("checkReadme", ";readme/rewriteReadmeFile; readme/mdoc")

lazy val readme =
lazy val readme =
crossProject(JVMPlatform)
.withoutSuffixFor(JVMPlatform)
.crossType(CrossType.Pure) // new documentation project
.crossType(CrossType.Pure) // new documentation project
.in(file("target/readme")) // important: it must not be docs/
.enablePlugins(MdocPlugin)
.settings(
`kyo-settings`,
`without-cross-scala`,
mdocIn := new File("./../../README-in.md"),
mdocOut := new File("./../../README-out.md"),
rewriteReadmeFile := {
val readmeFile = new File("README.md")
val targetReadmeFile = new File("target/README-in.md")
val contents = IO.read(readmeFile)
val newContents = contents.replaceAll("```scala\n", "```scala mdoc:nest\n")
IO.write(targetReadmeFile, newContents)
}
`kyo-settings`,
`without-cross-scala`,
mdocIn := new File("./../../README-in.md"),
mdocOut := new File("./../../README-out.md"),
rewriteReadmeFile := {
val readmeFile = new File("README.md")
val targetReadmeFile = new File("target/README-in.md")
val contents = IO.read(readmeFile)
val newContents = contents.replaceAll("```scala\n", "```scala mdoc:nest\n")
IO.write(targetReadmeFile, newContents)
}
)
.dependsOn(
`kyo-core`,
`kyo-zio`,
`kyo-direct`,
`kyo-sttp`,
`kyo-chatgpt`,
`kyo-bench`
`kyo-core`,
`kyo-zio`,
`kyo-direct`,
`kyo-sttp`,
`kyo-chatgpt`,
`kyo-bench`
)

lazy val `js-settings` = Seq(
Expand Down

0 comments on commit 6e13880

Please sign in to comment.