-
Notifications
You must be signed in to change notification settings - Fork 34
/
Copy pathbuild.sbt
172 lines (153 loc) · 5.63 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
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
/*
scalafmt: {
style = defaultWithAlign
maxColumn = 150
align.tokens = [
{ code = "=>", owner = "Case" }
{ code = "?", owner = "Case" }
{ code = "extends", owner = "Defn.(Class|Trait|Object)" }
{ code = "//", owner = ".*" }
{ code = "{", owner = "Template" }
{ code = "}", owner = "Template" }
{ code = ":=", owner = "Term.ApplyInfix" }
{ code = "++=", owner = "Term.ApplyInfix" }
{ code = "+=", owner = "Term.ApplyInfix" }
{ code = "%", owner = "Term.ApplyInfix" }
{ code = "%%", owner = "Term.ApplyInfix" }
{ code = "%%%", owner = "Term.ApplyInfix" }
{ code = "->", owner = "Term.ApplyInfix" }
{ code = "?", owner = "Term.ApplyInfix" }
{ code = "<-", owner = "Enumerator.Generator" }
{ code = "?", owner = "Enumerator.Generator" }
{ code = "=", owner = "(Enumerator.Val|Defn.(Va(l|r)|Def|Type))" }
]
}
*/
val commonsVersion = "0.7.6"
val provVersion = "1.1.1"
val kgVersion = "0.9.4"
lazy val prov = "ch.epfl.bluebrain.nexus" %% "nexus-prov" % provVersion
lazy val commonsSchemas = "ch.epfl.bluebrain.nexus" %% "commons-schemas" % commonsVersion
lazy val kgSchemas = "ch.epfl.bluebrain.nexus" %% "kg-schemas" % kgVersion
lazy val core = project
.in(file("modules/core"))
.enablePlugins(WorkbenchPlugin)
.disablePlugins(ScapegoatSbtPlugin, DocumentationPlugin)
.dependsOn(nsgcommons)
.settings(publishSettings)
.settings(
name := "nsg-core-schemas",
moduleName := "nsg-core-schemas"
)
lazy val nexusschema = project
.in(file("modules/nexus-schemas"))
.enablePlugins(WorkbenchPlugin)
.disablePlugins(ScapegoatSbtPlugin, DocumentationPlugin)
.settings(publishSettings)
.settings(
name := "kg-nsg-schemas",
moduleName := "kg-nsg-schemas",
resolvers += Resolver.bintrayRepo("bogdanromanx", "maven"),
libraryDependencies ++= Seq(
commonsSchemas,
kgSchemas
)
)
lazy val experiment = project
.in(file("modules/experiment"))
.enablePlugins(WorkbenchPlugin)
.disablePlugins(ScapegoatSbtPlugin, DocumentationPlugin)
.dependsOn(core)
.settings(publishSettings)
.settings(
name := "nsg-experiment-schemas",
moduleName := "nsg-experiment-schemas"
)
lazy val nsgcommons = project
.in(file("modules/commons"))
.enablePlugins(WorkbenchPlugin)
.disablePlugins(ScapegoatSbtPlugin, DocumentationPlugin)
.dependsOn(nexusschema)
.settings(publishSettings)
.settings(
name := "nsg-commons-schemas",
moduleName := "nsg-commons-schemas",
libraryDependencies += prov
)
lazy val atlas = project
.in(file("modules/atlas"))
.enablePlugins(WorkbenchPlugin)
.disablePlugins(ScapegoatSbtPlugin, DocumentationPlugin)
.dependsOn(experiment)
.settings(publishSettings)
.settings(
name := "nsg-atlas-schemas",
moduleName := "nsg-atlas-schemas"
)
lazy val electrophysiology = project
.in(file("modules/electrophysiology"))
.enablePlugins(WorkbenchPlugin)
.disablePlugins(ScapegoatSbtPlugin, DocumentationPlugin)
.dependsOn(experiment)
.settings(publishSettings)
.settings(
name := "nsg-electrophysiology-schemas",
moduleName := "nsg-electrophysiology-schemas"
)
lazy val morphology = project
.in(file("modules/morphology"))
.enablePlugins(WorkbenchPlugin)
.disablePlugins(ScapegoatSbtPlugin, DocumentationPlugin)
.dependsOn(experiment)
.settings(publishSettings)
.settings(
name := "nsg-morphology-schemas",
moduleName := "nsg-morphology-schemas"
)
lazy val simulation = project
.in(file("modules/simulation"))
.enablePlugins(WorkbenchPlugin)
.disablePlugins(ScapegoatSbtPlugin, DocumentationPlugin)
.dependsOn(core)
.settings(publishSettings)
.settings(
name := "nsg-simulation-schemas",
moduleName := "nsg-simulation-schemas"
)
lazy val root = project
.in(file("."))
.settings(name := "nsg-schemas", moduleName := "nsg-schemas")
.settings(noPublish)
.aggregate(core, experiment, atlas, morphology, electrophysiology, simulation, nexusschema,nsgcommons)
inThisBuild(
List(
workbenchVersion := "0.3.2",
bintrayOmitLicense := true,
homepage := Some(url("https://github.com/INCF/neuroshapes")),
licenses := Seq("Attribution" -> url("https://github.com/INCF/neuroshapes/blob/master/LICENSE")),
developers := List(
Developer("MFSY", "Mohameth François Sy", "[email protected]", url("https://incf.github.io/neuroshapes/")),
Developer("annakristinkaufmann", "Anna-Kristin Kaufmann", "[email protected]", url("https://incf.github.io/neuroshapes/")),
Developer("huanxiang", "Lu Huanxiang", "[email protected]", url("https://incf.github.io/neuroshapes/")),
Developer("apdavison", "Andrew Davison", "[email protected]", url("https://incf.github.io/neuroshapes/")),
Developer("genric", "Ivaska Genrich", "[email protected]", url("https://incf.github.io/neuroshapes/"))
),
scmInfo := Some(ScmInfo(url("https://github.com/INCF/neuroshapes"), "scm:git:git@https://github.com/INCF/neuroshapes.git")),
// These are the sbt-release-early settings to configure
releaseEarlyWith := BintrayPublisher,
bintrayOrganization := Some("neuroshapes"),
bintrayRepository := "maven",
releaseEarlyNoGpg := true,
releaseEarlyEnableSyncToMaven := false,
))
lazy val noPublish = Seq(
publishLocal := {},
publish := {},
publishArtifact := false,
)
lazy val publishSettings = Seq(
bintrayOrganization := Some("neuroshapes"),
bintrayRepository := "maven"
)
addCommandAlias("review", ";clean;test")
addCommandAlias("rel", ";release with-defaults skip-tests")