-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathbuild.sbt
39 lines (29 loc) · 1.31 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
// refer to project/Common.scala for shared settings and definitions
// refer to project/Dependencies.scala for dependency definitions
import Common._
import Dependencies._
import Release._
import sbt.Keys._
import xerial.sbt.Pack._
name := "sparkplug"
organization := organisationString
scalaVersion := scalaVersionString
releaseVersionBump := sbtrelease.Version.Bump.Bugfix
releaseProcess := customReleaseProcess
// run the tests in series
concurrentRestrictions in Global += Tags.limit(Tags.Test, 1)
def dep(project: Project) = project % "test->test;compile->compile"
lazy val sparkPlugCore: Project = CreateProject("sparkplug-core", sparkCoreLibDependencies)
lazy val sparkExecutor = CreateProject("sparkplug-executor", sparkExecutorLibDependencies)
.dependsOn(dep(sparkPlugCore))
lazy val sparkLauncher = CreateProject("sparkplug-launcher", sparkLauncherLibDependencies)
.dependsOn(dep(sparkPlugCore), dep(sparkExecutor))
lazy val main = project.in(file("."))
.aggregate(sparkPlugCore, sparkExecutor, sparkLauncher)
.settings(Defaults.coreDefaultSettings ++ Seq(
publishTo := Some(Resolver.file("Unused transient repository", file("target/unusedrepo"))),
publishArtifact := false
))
.settings(packAutoSettings)
.settings(packGenerateWindowsBatFile := false)
.settings(parallelExecution in Test := false)