-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sbt
33 lines (25 loc) · 800 Bytes
/
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
import sbtcrossproject.{crossProject, CrossType}
enablePlugins(ScalaNativePlugin)
val sharedSettings = Seq(
name := "advent-of-code",
organization := "org.tritsch",
version := "0.2.0",
scalaVersion in ThisBuild:= "2.13.4"
)
val jvmSettings = Seq(
libraryDependencies += "org.scalactic" %% "scalactic" % "3.2.5",
libraryDependencies += "org.scalatest" %% "scalatest" % "3.2.5" % "test",
scalacOptions ++= Seq("-unchecked", "-deprecation", "-feature")
)
val nativeSettings = Seq(
nativeMode := "debug",
nativeGC := "immix"
)
lazy val aoc = crossProject(JVMPlatform, NativePlatform)
.crossType(CrossType.Full)
.in(file("."))
.settings(sharedSettings)
.jvmSettings(jvmSettings)
.nativeSettings(nativeSettings)
lazy val aocJVM = aoc.jvm
lazy val aocNative = aoc.native