Skip to content

Commit

Permalink
fix/unable-to-publiclocal-windows11
Browse files Browse the repository at this point in the history
  • Loading branch information
akay41024 committed Jul 31, 2024
1 parent 5a276f7 commit 82c4d90
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 1 deletion.
29 changes: 29 additions & 0 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,35 @@ lazy val root = project
docs
)

//Switch to using the Scala 2 Scaladoc generator, which might not have this issue.

Compile / doc := (Compile / doc).value
Compile / doc / scalacOptions ++= Seq(
"-Xdoc-generator", "scaladoc"
)
Compile / doc / sources := Seq.empty
Compile / packageDoc / publishArtifact := false

Compile / doc := {
val targetDir = (Compile / target).value / "scala-3" / "api"
val files = (Compile / doc / sources).value
val s = streams.value
val cp = (Compile / doc / fullClasspath).value
val opts = (Compile / doc / scalacOptions).value

IO.createDirectory(targetDir)
val options = opts ++ Seq("-d", targetDir.getAbsolutePath)

val run = new ScalaDocRunner()
run.run("scala.tools.nsc.ScalaDoc", options, files, cp.files, s.log)

targetDir
}





lazy val tests = crossProject(JSPlatform, JVMPlatform, NativePlatform)
.in(file("tests"))
.dependsOn(zioSchemaDerivation % "compile->test", zioSchema % "test->test", zioSchemaZioTest % "compile->test")
Expand Down
2 changes: 1 addition & 1 deletion project/build.properties
Original file line number Diff line number Diff line change
@@ -1 +1 @@
sbt.version=1.9.7
sbt.version=1.9.8
2 changes: 2 additions & 0 deletions project/plugins.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,7 @@ addSbtPlugin("org.portable-scala" % "sbt-scala-native-crossproject" % "1.3.2")
addSbtPlugin("org.scala-native" % "sbt-scala-native" % "0.4.16")
addSbtPlugin("pl.project13.scala" % "sbt-jmh" % "0.4.6")
addSbtPlugin("dev.zio" % "zio-sbt-website" % "0.4.0-alpha.22")
addSbtPlugin("org.scala-lang.modules" % "sbt-scala3doc" % "0.2.0")


libraryDependencies += "org.snakeyaml" % "snakeyaml-engine" % "2.7"

0 comments on commit 82c4d90

Please sign in to comment.