-
Notifications
You must be signed in to change notification settings - Fork 13
/
build.sbt
53 lines (42 loc) · 1.44 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
import scala.util.Properties.isJavaAtLeast
import Dependencies._
// Settings
ThisBuild / organization := "org.eu.acolyte"
// JDBC
val jdbcDriver = JdbcDriver.project
val jdbcJava8 = new JdbcJava8(jdbcDriver).project
val jdbcScala = new JdbcScala(jdbcDriver).project
val playJdbc = new PlayJdbc(jdbcScala).project
// ReactiveMongo
val rm = new ReactiveMongo()
val reactiveMongo = rm.project
val playReactiveMongo = rm.playProject
lazy val studio = (sbt.project in file("studio")).settings(
autoScalaLibrary := false,
crossPaths := false,
resolvers += "Tatami Releases".at(
"https://raw.github.com/cchantep/tatami/master/releases"
),
libraryDependencies ++= Seq(
"melasse" % "melasse-core" % "1.0",
"de.sciss" % "syntaxpane" % "1.3.0",
"org.apache.commons" % "commons-lang3" % "3.17.0"
),
assembly / mainClass := Some("acolyte.Studio"),
assembly / assemblyJarName := s"acolyte-studio-${version.value}.jar"
)
// Aggregation
val versionVariant = if (isJavaAtLeast("1.7")) "-j7p" else ""
val javaVersion =
if (isJavaAtLeast("1.8")) "1.8"
else if (isJavaAtLeast("1.7")) "1.7"
else "1.6"
lazy val root = Project(id = "acolyte", base = file("."))
.settings(Publish.settings)
.aggregate(reactiveMongo, jdbcDriver, jdbcScala, studio)
.disablePlugins(HighlightExtractorPlugin, ScaladocExtractorPlugin)
.configure { p =>
if (isJavaAtLeast("1.8")) {
p.aggregate(playJdbc, jdbcJava8, playReactiveMongo)
} else p
}