1
1
import xerial .sbt .Sonatype .sonatypeCentralHost
2
2
3
- ThisBuild / scalaVersion := " 3.5.0 "
3
+ ThisBuild / scalaVersion := " 3.6.2 "
4
4
ThisBuild / licenses := List ((" MIT" , url(" https://opensource.org/licenses/MIT" )))
5
5
ThisBuild / homepage := Some (url(" https://github.com/d10xa/json-log-viewer" ))
6
6
ThisBuild / organization := " ru.d10xa"
@@ -17,6 +17,14 @@ ThisBuild / sonatypeCredentialHost := sonatypeCentralHost
17
17
val circeVersion = " 0.14.10"
18
18
val declineVersion = " 2.4.1"
19
19
val fs2Version = " 3.11.0"
20
+ val munitVersion = " 1.0.3"
21
+
22
+ lazy val root = project.in(file(" ." )).
23
+ aggregate(`json-log-viewer`.js, `json-log-viewer`.jvm, `frontend-laminar`).
24
+ settings(
25
+ publish := {},
26
+ publishLocal := {},
27
+ )
20
28
21
29
lazy val `json-log-viewer` = crossProject(JSPlatform , JVMPlatform )
22
30
.in(file(" json-log-viewer" ))
@@ -28,6 +36,7 @@ lazy val `json-log-viewer` = crossProject(JSPlatform, JVMPlatform)
28
36
pomIncludeRepository := { _ => false },
29
37
libraryDependencies ++= Seq (
30
38
" org.typelevel" %%% " cats-effect" % " 3.5.4" ,
39
+ " org.typelevel" %%% " munit-cats-effect" % " 2.0.0" % Test ,
31
40
" co.fs2" %%% " fs2-core" % fs2Version,
32
41
" co.fs2" %%% " fs2-io" % fs2Version,
33
42
" com.monovore" %%% " decline" % declineVersion,
@@ -36,20 +45,22 @@ lazy val `json-log-viewer` = crossProject(JSPlatform, JVMPlatform)
36
45
" io.circe" %%% " circe-literal" % circeVersion % Test ,
37
46
" io.circe" %%% " circe-parser" % circeVersion,
38
47
" io.circe" %%% " circe-generic" % circeVersion,
39
- " io.circe" %%% " circe-yaml-scalayaml" % " 0.16.0" ,
40
48
" com.lihaoyi" %%% " fansi" % " 0.5.0" ,
41
49
" org.scala-lang.modules" %%% " scala-parser-combinators" % " 2.4.0" ,
42
- " org.scalameta" %% " munit" % " 0.7.29 " % Test
50
+ " org.scalameta" %%% " munit" % munitVersion % Test
43
51
),
44
52
fork := true ,
45
53
run / connectInput := true ,
46
54
)
47
55
.jvmSettings(
56
+ libraryDependencies ++= Seq (
57
+ " io.circe" %%% " circe-yaml-scalayaml" % " 0.16.0"
58
+ ),
48
59
publish / skip := false
49
60
)
50
61
.jsSettings(
51
62
publish / skip := true ,
52
- fork := false ,
63
+ fork := false
53
64
)
54
65
55
66
lazy val `make-logs` = project
@@ -77,12 +88,13 @@ lazy val `frontend-laminar` = project
77
88
" com.raquo" %%% " airstream" % " 16.0.0" ,
78
89
" com.raquo" %%% " waypoint" % " 7.0.0" ,
79
90
" com.github.plokhotnyuk.jsoniter-scala" %%% " jsoniter-scala-core" % " 2.28.4" ,
80
- " com.github.plokhotnyuk.jsoniter-scala" %% " jsoniter-scala-macros" % " 2.28.4" % " provided"
91
+ " com.github.plokhotnyuk.jsoniter-scala" %% " jsoniter-scala-macros" % " 2.28.4" % " provided" ,
92
+ " org.scalameta" %% " munit" % munitVersion % Test
81
93
),
82
94
Compile / fastLinkJS / scalaJSLinkerConfig ~= { _.withSourceMap(true ) },
83
95
Compile / fullLinkJS / scalaJSLinkerConfig ~= { _.withSourceMap(true ) },
84
96
scalaJSLinkerConfig ~= { _.withModuleKind(ModuleKind .CommonJSModule ) },
97
+
85
98
scalaJSUseMainModuleInitializer := true ,
86
- (Test / requireJsDomEnv) := true ,
87
- useYarn := true
99
+ (Test / requireJsDomEnv) := true
88
100
)
0 commit comments