Skip to content

Commit 10ff8f6

Browse files
authored
Merge pull request #16 from LeeTibbert/PR_build_scalacFatalWarnings_2020-04-16
Fix scalacOptions fatal warnings breaking publishLocal & publish
2 parents 642f9fd + 9a032ed commit 10ff8f6

File tree

1 file changed

+19
-9
lines changed

1 file changed

+19
-9
lines changed

build.sbt

Lines changed: 19 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -38,56 +38,66 @@ lazy val commonSettings = Seq(
3838
"-Ywarn-unused-import",
3939
"-Xfatal-warnings"
4040
),
41+
Compile / doc / scalacOptions -= "-Xfatal-warnings",
4142
publish / skip := true,
4243
publishLocal / skip := true
4344
)
4445

45-
lazy val core = project.in(file("core"))
46+
lazy val core = project
47+
.in(file("core"))
4648
.settings(name := "native-loop-core")
4749
.settings(commonSettings)
4850
.settings(publish / skip := false)
4951
.settings(publishLocal / skip := false)
5052
.enablePlugins(ScalaNativePlugin)
5153

52-
lazy val pipe = project.in(file("pipe"))
54+
lazy val pipe = project
55+
.in(file("pipe"))
5356
.settings(commonSettings)
5457
.enablePlugins(ScalaNativePlugin)
5558
.dependsOn(core)
5659

57-
lazy val client = project.in(file("client"))
60+
lazy val client = project
61+
.in(file("client"))
5862
.settings(commonSettings)
5963
.enablePlugins(ScalaNativePlugin)
6064
.dependsOn(core)
6165

62-
lazy val server = project.in(file("server"))
66+
lazy val server = project
67+
.in(file("server"))
6368
.settings(commonSettings)
6469
.enablePlugins(ScalaNativePlugin)
6570
.dependsOn(core)
6671

67-
lazy val scalaJsCompat = project.in(file("scalajs-compat"))
72+
lazy val scalaJsCompat = project
73+
.in(file("scalajs-compat"))
6874
.settings(name := "native-loop-js-compat")
6975
.settings(commonSettings)
7076
.settings(publish / skip := false)
7177
.settings(publishLocal / skip := false)
7278
.enablePlugins(ScalaNativePlugin)
7379
.dependsOn(core)
7480

75-
lazy val serverExample = project.in(file("examples/server"))
81+
lazy val serverExample = project
82+
.in(file("examples/server"))
7683
.settings(commonSettings)
7784
.enablePlugins(ScalaNativePlugin)
7885
.dependsOn(core, server, client)
7986

80-
lazy val pipeExample = project.in(file("examples/pipe"))
87+
lazy val pipeExample = project
88+
.in(file("examples/pipe"))
8189
.settings(commonSettings)
8290
.enablePlugins(ScalaNativePlugin)
8391
.dependsOn(core, pipe, client)
8492

85-
lazy val curlExample = project.in(file("examples/curl"))
93+
lazy val curlExample = project
94+
.in(file("examples/curl"))
8695
.settings(commonSettings)
8796
.enablePlugins(ScalaNativePlugin)
8897
.dependsOn(core, client)
8998

90-
lazy val timerExample = project.in(file("examples/timer"))
99+
lazy val timerExample = project
100+
.in(file("examples/timer"))
91101
.settings(commonSettings)
92102
.enablePlugins(ScalaNativePlugin)
93103
.dependsOn(core)

0 commit comments

Comments
 (0)