Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix/unable-to-publiclocal-windows11 #674 #714

Closed
wants to merge 3 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 28 additions & 0 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,34 @@ lazy val root = project
docs
)


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: 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"
Loading