This repository has been archived by the owner on Aug 14, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sbt
81 lines (67 loc) · 2.27 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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
import sbt.Keys._
name := "PFView"
version := "0.0.6"
organization := "com.micronautics"
licenses += ("MIT", url("https://opensource.org/licenses/MIT"))
javacOptions ++= Seq(
"-Xlint:deprecation",
"-Xlint:unchecked",
"-source", "1.8",
"-target", "1.8",
"-g:vars"
)
scalacOptions ++= (
scalaVersion {
case sv if sv.startsWith("2.10") => List(
"-target:jvm-1.7"
)
case _ => List(
"-target:jvm-1.8",
"-Ywarn-unused"
)
}.value ++ Seq(
"-deprecation",
"-encoding", "UTF-8",
"-feature",
"-unchecked",
"-Xlint"
)
)
scalaVersion := "2.12.11"
crossScalaVersions := Seq("2.10.6", "2.11.12", "2.12.11", "2.13.2")
resolvers += "micronautics/scala on bintray" at "https://dl.bintray.com/micronautics/scala"
ThisBuild / turbo := true
libraryDependencies ++= Seq(
"ch.qos.logback" % "logback-classic" % "1.2.1" % Test withSources(),
"com.micronautics" %% "scalacourses-utils" % "0.2.20" withSources(),
"com.google.code.findbugs" % "jsr305" % "3.0.2" withSources() force()
)
libraryDependencies ++= scalaVersion {
case sv if sv.startsWith("2.13") =>
// todo write me
Nil
case sv if sv.startsWith("2.12") =>
val playVer = "2.6.2"
Seq(
"com.typesafe.play" %% "play" % playVer % Provided,
// "com.typesafe.play" %% "play-crypto" % playVer % Provided,
"org.scalatestplus.play" %% "scalatestplus-play" % "3.1.0" % Test
)
case sv if sv.startsWith("2.11") =>
Seq(
"com.typesafe.play" %% "play" % "2.5.16" % Provided,
"org.scalatestplus.play" %% "scalatestplus-play" % "3.0.0" % Test
)
case sv if sv.startsWith("2.10") =>
Seq(
"com.typesafe.play" %% "play" % "2.2.6" % Provided,
"org.scalatestplus" %% "play" % "1.0.0" % Test
)
}.value
// define the statements initially evaluated when entering 'console', 'console-quick' but not 'console-project'
initialCommands in console := """import java.net.URL
|import java.text.DateFormat
|import java.util.Locale
|import play.api.Play.current
|import play.Logger
|""".stripMargin