-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.sbt
40 lines (37 loc) · 1.09 KB
/
build.sbt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
import Dependencies._
val scala3Version = "3.1.2"
inThisBuild(
Seq(
homepage := Some(url("https://github.com/i10416/fjp4s")),
organization := "dev.i10416",
description := "A functional json parser library written in Scala 3 inspired by argonaut.",
version := "0.1.0-SNAPSHOT"
)
)
lazy val cross =
crossProject(JSPlatform, JVMPlatform)
.crossType(CrossType.Full)
.in(file("fjp4s"))
.settings(
name := "fjp4s",
// githubOwner := "ItoYo16u",
// githubRepository := "fjp4s",
version := version.value,
semanticdbEnabled := true,
semanticdbVersion := scalafixSemanticdb.revision,
scalaVersion := scala3Version,
scalacOptions ++= Seq(
"-feature",
"-deprecation"
),
libraryDependencies ++= deps,
Def.settings(
Seq(Compile, Test).map { scope =>
(scope / unmanagedSourceDirectories) += {
val base = baseDirectory.value.getParentFile / "shared" / "src"
val dir = base / Defaults.nameForSrc(scope.name)
dir / "scala3"
}
}
)
)