-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.sbt
52 lines (49 loc) · 1.13 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
import sbt.Keys._
import sbt._
lazy val root = project
.in(file(""))
.settings(
name := "why-scala3-will-be-awesome",
version := "0.1.0"
)
.aggregate(scala2, scala3)
lazy val scala2 = project
.in(file("scala2"))
.settings(
scalaVersion := "2.13.4",
scalacOptions := Seq(
"-deprecation",
"-encoding",
"UTF-8",
"-feature",
"-unchecked",
"-language:higherKinds",
"-language:existentials",
"-language:implicitConversions",
"-explaintypes",
"-Yrangepos",
"-Xlint:_,-missing-interpolator,-type-parameter-shadow",
"-Ywarn-numeric-widen",
"-Xfatal-warnings",
"-Ymacro-annotations"
),
libraryDependencies ++= Seq(
"tech.units" % "indriya" % "2.1.1"
)
)
lazy val scala3 = project
.in(file("scala3"))
.settings(
scalaVersion := "3.0.0-M3",
scalacOptions := Seq(
"-language:postfixOps",
"-language:implicitConversions",
"-Ykind-projector",
"-Yexplicit-nulls",
"-source", "3.1",
"-Xfatal-warnings"
),
libraryDependencies ++= Seq(
"tech.units" % "indriya" % "2.1.1"
)
)