-
Notifications
You must be signed in to change notification settings - Fork 5
/
build.sbt
74 lines (52 loc) · 2.52 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
name := "scala-trace-debug"
organization := "com.github.johnreedlol"
description := "Macro based print debugging. Locates log statements in your IDE."
// Developer information missing
developers := List(Developer(id = "johnreedlol", name = "John-Michael Reed", email = "johnmichaelreedfas@gmail.com", new URL("https://github.com/JohnReedLOL")))
scmInfo := Some(ScmInfo(new URL("https://github.com/JohnReedLOL/scala-trace-debug"),
"scm:git:git://github.com/JohnReedLOL/scala-trace-debug.git",
None)) // SCM URL missing
// Project URL missing
pomExtra := (
<url>https://github.com/JohnReedLOL/scala-trace-debug</url>
)
scalaVersion := "2.11.7"
version := "4.3.0" // For compatibility, only use first two digits (MajorVersion, MinorVersion)
crossScalaVersions := Seq("2.10.4", "2.11.2")
resolvers += Resolver.sonatypeRepo("releases")
pgpReadOnly := false // To import a key
useGpg := true // The first step towards using the GPG command line tool is to make sbt-pgp gpg-aware. (skip for built-in Bouncy Castle PGP implementation)
def macroDependencies(version: String) =
Seq(
"org.scala-lang" % "scala-reflect" % version % "provided",
"org.scala-lang" % "scala-compiler" % version % "provided"
) ++
(if (version startsWith "2.10.")
Seq(compilerPlugin("org.scalamacros" % s"paradise" % "2.0.0" cross CrossVersion.full),
"org.scalamacros" %% s"quasiquotes" % "2.0.0")
else
Seq())
unmanagedSourceDirectories in Compile ++= {
if (scalaVersion.value startsWith "2.10.") {
Seq(baseDirectory.value / "src"/ "main" / "scala-2.10")
}
else {
Seq(baseDirectory.value / "src" / "main" / "scala-2.11")
}
}
libraryDependencies ++= Seq(
"org.scalatest" %% "scalatest" % "2.2.6" % "test",
"org.scalacheck" %% "scalacheck" % "1.11.5" % "test",
"ch.qos.logback" % "logback-classic" % "1.1.3" % "test",
"junit" % "junit" % "4.11" % Test,
"com.novocode" % "junit-interface" % "0.11" % Test
exclude("junit", "junit-dep")
)
libraryDependencies ++= macroDependencies(scalaVersion.value)
libraryDependencies += "org.scala-lang.modules" % "scala-xml_2.11" % "1.0.4"
scalacOptions ++= Seq("-unchecked", "-feature", "-Xlint", "-Yinline-warnings", "-Ywarn-inaccessible", "-Ywarn-nullary-override", "-Ywarn-nullary-unit")
bintrayReleaseOnPublish in ThisBuild := true
bintrayOmitLicense := false
licenses += ("MIT", url("http://opensource.org/licenses/MIT"))
bintrayPackageLabels := Seq("debug", "scala", "trace", "debugging", "assert")
bintrayVcsUrl := Some("git@github.com:JohnReedLOL/scala-trace-debug.git")