Skip to content

Commit 0ba4617

Browse files
committed
enable Scala 3 scala-native build
1 parent a93c7f0 commit 0ba4617

File tree

1 file changed

+0
-28
lines changed

1 file changed

+0
-28
lines changed

build.sbt

Lines changed: 0 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ import sbtrelease.ReleaseStateTransformations._
44

55
val msgpack4zJawnName = "msgpack4z-jawn"
66
val modules = msgpack4zJawnName :: Nil
7-
val isScala3 = Def.setting(scalaBinaryVersion.value == "3")
87

98
def gitHash(): String = sys.process.Process("git rev-parse HEAD").lineStream_!.head
109

@@ -127,33 +126,6 @@ val msgpack4zJawn = CrossProject("msgpack4z-jawn", file("."))(JVMPlatform, JSPla
127126
"com.github.xuwei-k" %%% "msgpack4z-native" % "0.4.0" % "test",
128127
),
129128
)
130-
.nativeSettings(
131-
libraryDependencies := {
132-
if (isScala3.value) {
133-
Nil
134-
} else {
135-
libraryDependencies.value
136-
}
137-
},
138-
Seq(Compile, Test).map { x =>
139-
(x / sources) := {
140-
if (isScala3.value) {
141-
Nil
142-
} else {
143-
(x / sources).value
144-
}
145-
}
146-
},
147-
Test / test := {
148-
if (isScala3.value) {
149-
()
150-
} else {
151-
(Test / test).value
152-
}
153-
},
154-
publish / skip := isScala3.value,
155-
crossScalaVersions -= Scala3,
156-
)
157129
.jsSettings(
158130
scalacOptions += {
159131
val a = (LocalRootProject / baseDirectory).value.toURI.toString

0 commit comments

Comments
 (0)