@@ -22,7 +22,8 @@ object versions {
22
22
val scalaNativeVersion = " 0.4.7"
23
23
val munitVersion = " 0.7.29"
24
24
val munitNativeVersion = " 1.0.0-M6"
25
- val fs2 = " 3.2.13"
25
+ val fs2 = " 3.3.0"
26
+ val weaver = " 0.8.0"
26
27
27
28
val scala213 = " 2.13"
28
29
val scala212 = " 2.12"
@@ -75,6 +76,11 @@ object fs2 extends RPCCrossPlatformModule { cross =>
75
76
object test extends WeaverTests
76
77
}
77
78
79
+ object native extends mill.Cross [NativeModule ](scala213, scala3)
80
+ class NativeModule (cv : String ) extends cross.Native (cv) {
81
+ object test extends WeaverTests
82
+ }
83
+
78
84
}
79
85
80
86
object examples extends mill.define.Module {
@@ -112,7 +118,7 @@ trait RPCCrossPlatformModule extends Module { shared =>
112
118
override def platformLabel : String = " jvm"
113
119
114
120
trait WeaverTests extends Tests {
115
- def ivyDeps = super .ivyDeps() ++ Agg (ivy " com.disneystreaming::weaver-cats:0.7.15 " )
121
+ def ivyDeps = super .ivyDeps() ++ Agg (ivy " com.disneystreaming::weaver-cats:: $weaver " )
116
122
def testFramework = " weaver.framework.CatsEffect"
117
123
}
118
124
@@ -138,7 +144,7 @@ trait RPCCrossPlatformModule extends Module { shared =>
138
144
override def skipIdea = true
139
145
140
146
trait WeaverTests extends Tests {
141
- def ivyDeps = super .ivyDeps() ++ Agg (ivy " com.disneystreaming::weaver-cats::0.7.15 " )
147
+ def ivyDeps = super .ivyDeps() ++ Agg (ivy " com.disneystreaming::weaver-cats:: $weaver " )
142
148
def testFramework = " weaver.framework.CatsEffect"
143
149
}
144
150
@@ -173,6 +179,11 @@ trait RPCCrossPlatformModule extends Module { shared =>
173
179
override def skipIdea = true
174
180
override def skipBloop = true
175
181
182
+ trait WeaverTests extends Tests {
183
+ def ivyDeps = super .ivyDeps() ++ Agg (ivy " com.disneystreaming::weaver-cats:: $weaver" )
184
+ def testFramework = " weaver.framework.CatsEffect"
185
+ }
186
+
176
187
trait MunitTests extends Tests with TestModule .Munit {
177
188
def ivyDeps = super .ivyDeps() ++ Agg (ivy " org.scalameta::munit:: $munitNativeVersion" )
178
189
}
0 commit comments