Skip to content

Commit d944231

Browse files
authored
Update "Making a ZIO application configurable" Guide To Reflect Recent Changes On ZIO Config (zio#7974)
* initial work. * remove outdated contents. * add example files.
1 parent 171b825 commit d944231

20 files changed

+864
-354
lines changed

build.sbt

+5
Original file line numberDiff line numberDiff line change
@@ -771,6 +771,10 @@ lazy val scalafixTests = project
771771
.dependsOn(scalafixRules)
772772
.enablePlugins(ScalafixTestkitPlugin)
773773

774+
lazy val docs_make_zio_app_configurable =
775+
project
776+
.in(file("documentation/guides/tutorials/make-a-zio-app-configurable"))
777+
774778
lazy val docs = project.module
775779
.in(file("zio-docs"))
776780
.settings(
@@ -899,3 +903,4 @@ lazy val docs = project.module
899903
core.js
900904
)
901905
.enablePlugins(MdocPlugin, DocusaurusPlugin, ScalaUnidocPlugin)
906+
.aggregate(docs_make_zio_app_configurable)

docs/guides/tutorials/make-a-zio-application-configurable.md

-351
This file was deleted.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
import BuildHelper._
2+
3+
mdocSettings("docs", "website/docs/guides/tutorials/")
4+
fork := true
5+
publish / skip := true
6+
scalaVersion := Scala213
7+
unusedCompileDependenciesFilter -= moduleFilter("org.scalameta", "mdoc")
8+
scalacOptions -= "-Yno-imports"
9+
scalacOptions -= "-Xfatal-warnings"
10+
scalacOptions += "-Wconf:any:s"
11+
Compile / fork := false
12+
scalacOptions ~= { _ filterNot (_ startsWith "-Ywarn") }
13+
scalacOptions ~= { _ filterNot (_ startsWith "-Xlint") }
14+
crossScalaVersions --= List(Scala212, Scala3)
15+
16+
libraryDependencies ++= Seq(
17+
"dev.zio" %% "zio" % "2.0.10",
18+
"dev.zio" %% "zio-json" % "0.4.2",
19+
"dev.zio" %% "zio-http" % "0.0.5",
20+
"io.getquill" %% "quill-zio" % "4.6.0",
21+
"io.getquill" %% "quill-jdbc-zio" % "4.6.0",
22+
"com.h2database" % "h2" % "2.1.214",
23+
"dev.zio" %% "zio-config" % "4.0.0-RC14",
24+
"dev.zio" %% "zio-config-typesafe" % "4.0.0-RC14",
25+
"dev.zio" %% "zio-config-magnolia" % "4.0.0-RC14"
26+
)
27+
28+
enablePlugins(MdocPlugin)

0 commit comments

Comments
 (0)