-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sbt
49 lines (47 loc) · 1.35 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
41
42
43
44
45
46
47
48
49
import sbt._
import sbtcrossproject.CrossPlugin.autoImport.crossProject
val scala212 = "2.12.16"
val scala213 = "2.13.8"
val scala3 = "3.1.3"
inThisBuild(
Seq(
versionScheme := Some("early-semver"),
organization := "dev.i10416",
licenses := List(
"Apache-2.0" -> url("https://www.apache.org/licenses/LICENSE-2.0")
),
homepage := Some(url("https://github.com/i10416/petit")),
developers := List(
Developer(
"i10416",
"i10416",
url("https://github.com/i10416")
)
),
scalacOptions ++= Seq("-feature", "-deprecation"),
sonatypeCredentialHost := "s01.oss.sonatype.org",
sonatypeRepository := "https://s01.oss.sonatype.org/service/local"
)
)
lazy val lib = crossProject(JSPlatform, JVMPlatform)
.in(file("petit"))
.settings(
name := "petit",
scalaVersion := scala3,
scalacOptions ++= {
if (scalaVersion.value.startsWith("2.12")) Seq("-language:higherKinds")
else Nil
},
crossScalaVersions := Seq(scala212, scala213, scala3),
libraryDependencies ++= Dependencies.deps ++ Seq(
"org.typelevel" %%% "cats-effect" % "3.3.14"
)
)
.jsSettings(
publish / skip := true,
libraryDependencies ++= Seq(
"org.scala-js" %%% "scalajs-dom" % "2.3.0",
"co.fs2" %%% "fs2-core" % "3.2.14"
)
)