-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.sbt
executable file
·52 lines (50 loc) · 1.85 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
50
51
52
ThisBuild / licenses += "ISC" -> url("https://opensource.org/licenses/ISC")
ThisBuild / versionScheme := Some("semver-spec")
ThisBuild / evictionErrorLevel := Level.Warn
publish / skip := true
lazy val cross_template = crossProject(JSPlatform, JVMPlatform, NativePlatform)
.in(file("."))
.settings(
name := "cross-template",
version := "0.0.1",
scalaVersion := "3.6.2",
scalacOptions ++=
Seq(
"-deprecation",
"-feature",
"-unchecked",
"-language:postfixOps",
"-language:implicitConversions",
"-language:existentials",
"-language:dynamics",
),
organization := "io.github.edadma",
githubOwner := "edadma",
githubRepository := name.value,
// libraryDependencies += "org.scalatest" %%% "scalatest" % "3.2.19" % "test",
// libraryDependencies ++= Seq(
// "io.github.edadma" %%% "cross-platform" % "0.0.10"
// ),
libraryDependencies ++= Seq(
// "com.github.scopt" %%% "scopt" % "4.1.0",
// "com.lihaoyi" %%% "pprint" % "0.9.0" % "test",
),
publishMavenStyle := true,
Test / publishArtifact := false,
licenses += "ISC" -> url("https://opensource.org/licenses/ISC"),
)
.jvmSettings(
libraryDependencies += "org.scala-js" %% "scalajs-stubs" % "1.1.0" % "provided",
)
.nativeSettings(
libraryDependencies += "io.github.cquiroz" %%% "scala-java-time" % "2.6.0",
)
.jsSettings(
jsEnv := new org.scalajs.jsenv.nodejs.NodeJSEnv(),
// Test / scalaJSUseMainModuleInitializer := true,
// Test / scalaJSUseTestModuleInitializer := false,
Test / scalaJSUseMainModuleInitializer := false,
Test / scalaJSUseTestModuleInitializer := true,
scalaJSUseMainModuleInitializer := true,
libraryDependencies += "io.github.cquiroz" %%% "scala-java-time" % "2.6.0",
)