-
Notifications
You must be signed in to change notification settings - Fork 3
/
build.sbt
110 lines (101 loc) · 2.62 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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
import Dependencies._
ThisBuild / scalaVersion := "2.12.10"
ThisBuild / version := "0.1.0-SNAPSHOT"
ThisBuild / organization := "com.example"
ThisBuild / organizationName := "example"
//ThisBuild / useCoursier := false
ThisBuild / updateOptions := updateOptions.value.withCachedResolution(true)
ThisBuild / update / logLevel := Level.Debug
def csrConfigurationSettings(): sbt.Def.SettingsDefinition = csrConfiguration := csrConfiguration.value//.withChecksums(Vector(None))
lazy val root = (project in file("."))
.settings(
name := "Scala Seed Project"
)
.settings(csrConfigurationSettings())
.dependsOn(core, util)
.dependsOn(x.map(x => x: ClasspathDep[ProjectReference]): _*)
.aggregate(core, util)
.aggregate(x.map(x => x: ProjectReference): _*)
lazy val core = (project in file("modules/core"))
.settings(
name := "core",
libraryDependencies += spark,
libraryDependencies += scalaTest % Test
)
.settings(csrConfigurationSettings())
lazy val util = (project in file("modules/util"))
.settings(
name := "core",
libraryDependencies += spark,
libraryDependencies += scalaTest % Test
)
.settings(csrConfigurationSettings())
val x: Seq[Project] = for {
i <- 1 to 60
} yield Project(s"x$i", file(s"modules/module$i"))
.settings(
name := s"x$i"
)
.settings(csrConfigurationSettings())
.dependsOn(core, util)
//override lazy val projects = root +: x
lazy val x0 = x(0)
lazy val x1 = x(1)
lazy val x2 = x(2)
lazy val x3 = x(3)
lazy val x4 = x(4)
lazy val x5 = x(5)
lazy val x6 = x(6)
lazy val x7 = x(7)
lazy val x8 = x(8)
lazy val x9 = x(9)
lazy val x10 = x(10)
lazy val x11 = x(11)
lazy val x12 = x(12)
lazy val x13 = x(13)
lazy val x14 = x(14)
lazy val x15 = x(15)
lazy val x16 = x(16)
lazy val x17 = x(17)
lazy val x18 = x(18)
lazy val x19 = x(19)
lazy val x20 = x(20)
lazy val x21 = x(21)
lazy val x22 = x(22)
lazy val x23 = x(23)
lazy val x24 = x(24)
lazy val x25 = x(25)
lazy val x26 = x(26)
lazy val x27 = x(27)
lazy val x28 = x(28)
lazy val x29 = x(29)
lazy val x30 = x(30)
lazy val x31 = x(31)
lazy val x32 = x(32)
lazy val x33 = x(33)
lazy val x34 = x(34)
lazy val x35 = x(35)
lazy val x36 = x(36)
lazy val x37 = x(37)
lazy val x38 = x(38)
lazy val x39 = x(39)
lazy val x40 = x(40)
lazy val x41 = x(41)
lazy val x42 = x(42)
lazy val x43 = x(43)
lazy val x44 = x(44)
lazy val x45 = x(45)
lazy val x46 = x(46)
lazy val x47 = x(47)
lazy val x48 = x(48)
lazy val x49 = x(49)
lazy val x50 = x(50)
lazy val x51 = x(51)
lazy val x52 = x(52)
lazy val x53 = x(53)
lazy val x54 = x(54)
lazy val x55 = x(55)
lazy val x56 = x(56)
lazy val x57 = x(57)
lazy val x58 = x(58)
lazy val x59 = x(59)