Skip to content

Commit

Permalink
enable Scala 3 scala-native build
Browse files Browse the repository at this point in the history
  • Loading branch information
xuwei-k committed Jan 28, 2025
1 parent a93c7f0 commit 0ba4617
Showing 1 changed file with 0 additions and 28 deletions.
28 changes: 0 additions & 28 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import sbtrelease.ReleaseStateTransformations._

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

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

Expand Down Expand Up @@ -127,33 +126,6 @@ val msgpack4zJawn = CrossProject("msgpack4z-jawn", file("."))(JVMPlatform, JSPla
"com.github.xuwei-k" %%% "msgpack4z-native" % "0.4.0" % "test",
),
)
.nativeSettings(
libraryDependencies := {
if (isScala3.value) {
Nil
} else {
libraryDependencies.value
}
},
Seq(Compile, Test).map { x =>
(x / sources) := {
if (isScala3.value) {
Nil
} else {
(x / sources).value
}
}
},
Test / test := {
if (isScala3.value) {
()
} else {
(Test / test).value
}
},
publish / skip := isScala3.value,
crossScalaVersions -= Scala3,
)
.jsSettings(
scalacOptions += {
val a = (LocalRootProject / baseDirectory).value.toURI.toString
Expand Down

0 comments on commit 0ba4617

Please sign in to comment.