-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sbt
58 lines (51 loc) · 2.18 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
autoCompilerPlugins := true
cancelable in Global := true
lazy val commonSettings = Seq(
organization := "com.github.uw-pharm",
scalaVersion := "2.12.6",
version := "0.6.0-SNAPSHOT",
libraryDependencies += "org.scalatest" %% "scalatest" % "3.0.5" % Test,
libraryDependencies += "org.scala-lang" % "scala-reflect" % scalaVersion.value,
resolvers += Resolver.sonatypeRepo("releases"),
addCompilerPlugin("org.scalamacros" % "paradise" % "2.1.0" cross CrossVersion.full)
)
lazy val root = (project in file("."))
.settings(
commonSettings,
name := "bitsad"
)
.aggregate(libraries, macros, plugin)
lazy val libraries = (project in file("libraries"))
.settings(
commonSettings,
name := "bitsad-libraries"
)
.dependsOn(macros)
lazy val macros = (project in file("macros"))
.settings(
commonSettings,
name := "bitsad-macros",
// libraryDependencies += "org.scalameta" %% "scalameta" % "4.3.0",
libraryDependencies += "org.scala-lang" % "scala-compiler" % scalaVersion.value
)
lazy val plugin = (project in file("plugin"))
.settings(
commonSettings,
scalacOptions ++= Seq("-J-Xss256m", "-deprecation"),
name := "bitsad-plugin",
assemblyJarName in assembly := "bitsad-plugin.jar",
libraryDependencies += "org.scala-lang" % "scala-compiler" % scalaVersion.value
)
.dependsOn(libraries)
inThisBuild(List(
// These are normal sbt settings to configure for release, skip if already defined
licenses := Seq("GPL-3.0" -> url("http://opensource.org/licenses/GPL-3.0")),
homepage := Some(url("https://github.com/UW-PHARM/BitSAD")),
developers := List(Developer("@darsnack", "Kyle Daruwalla", "daruwalla@wisc.edu", url("https://darsnack.github.io/website")),
Developer("@zohan180", "Heng Zhuo", "hzhuo2@wisc.edu", url("https://www.linkedin.com/in/恒-卓-11a723a5/"))),
scmInfo := Some(ScmInfo(url("https://github.com/UW-PHARM/BitSAD.git"), "scm:git:git@github.com:UW-PHARM/BitSAD.git")),
// These are the sbt-release-early settings to configure
pgpPublicRing := file("./travis/local.pubring.asc"),
pgpSecretRing := file("./travis/local.secring.asc"),
releaseEarlyWith in Global := SonatypePublisher
))