-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.sbt
60 lines (44 loc) · 1.77 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
name := "sbt-quill-crud-generic"
organization := "com.github.ajozwik"
ThisBuild / resolvers ++= Resolver.sonatypeOssRepos("releases")
ThisBuild / resolvers ++= Resolver.sonatypeOssRepos("snapshots")
val targetJdk = "11"
ThisBuild / scalacOptions ++= Seq(
"-encoding",
"UTF-8",
"-deprecation",
"-feature",
"-unchecked",
"-Xlint",
"-Ywarn-adapted-args",
"-Ywarn-value-discard",
"-Ywarn-inaccessible",
"-Ywarn-dead-code",
"-language:reflectiveCalls",
"-Ydelambdafy:method",
s"-release:$targetJdk",
"-Xsource:3"
)
ThisBuild / javacOptions ++= Seq("-Xlint:deprecation", "-Xdiags:verbose", "-source", targetJdk, "-target", targetJdk)
ThisBuild / scalaVersion := "2.12.18"
val quillMacroVersion = "1.2.5"
val `com.typesafe.scala-logging_scala-logging` = "com.typesafe.scala-logging" %% "scala-logging" % "3.9.5"
val `ch.qos.logback_logback-classic` = "ch.qos.logback" % "logback-classic" % "1.3.14"
val `org.scalatest_scalatest` = "org.scalatest" %% "scalatest" % "3.2.17" % Test
val `org.scalacheck_scalacheck` = "org.scalacheck" %% "scalacheck" % "1.17.0" % Test
val `com.github.ajozwik_repository-jdbc-monad` = "com.github.ajozwik" %% "repository-jdbc-monad" % quillMacroVersion
ThisBuild / libraryDependencies ++= Seq(
`ch.qos.logback_logback-classic` % Test,
`com.typesafe.scala-logging_scala-logging` % Test,
`org.scalatest_scalatest`,
`org.scalacheck_scalacheck`,
`com.github.ajozwik_repository-jdbc-monad` % Test
)
ThisScope / sbtPlugin := true
lazy val root = (project in file("."))
.settings(
scriptedLaunchOpts += ("-Dplugin.version=" + version.value),
scriptedBufferLog := false,
Compile / compile / wartremoverWarnings ++= Warts.allBut(Wart.ImplicitParameter, Wart.DefaultArguments, Wart.Enumeration)
)
.enablePlugins(SbtPlugin)