-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.sbt
137 lines (124 loc) · 4.37 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
import sbtcrossproject.CrossPlugin.autoImport.crossProject
name := "jefe"
organization in ThisBuild := "com.outr"
version in ThisBuild := "2.0.8"
scalaVersion in ThisBuild := "2.12.10"
resolvers in ThisBuild ++= Seq(
Resolver.typesafeRepo("releases"),
Resolver.sonatypeRepo("releases"),
Resolver.sonatypeRepo("snapshots")
)
scalacOptions in ThisBuild ++= Seq("-unchecked", "-deprecation", "-feature", "-encoding", "utf8")
cancelable in Global := true
publishTo in ThisBuild := sonatypePublishTo.value
sonatypeProfileName in ThisBuild := "com.outr"
publishMavenStyle in ThisBuild := true
licenses in ThisBuild := Seq("MIT" -> url("https://github.com/outr/jefe/blob/master/LICENSE"))
sonatypeProjectHosting in ThisBuild := Some(xerial.sbt.Sonatype.GitHubHosting("outr", "jefe", "[email protected]"))
homepage in ThisBuild := Some(url("https://github.com/outr/jefe"))
scmInfo in ThisBuild := Some(
ScmInfo(
url("https://github.com/outr/jefe"),
"scm:[email protected]:outr/jefe.git"
)
)
developers in ThisBuild := List(
Developer(id="darkfrog", name="Matt Hicks", email="[email protected]", url=url("http://matthicks.com"))
)
fork in Test in ThisBuild := true
val coursierVersion = "1.0.3"
val libraryManagementVersion = "1.3.0"
val powerscalaVersion = "2.0.5"
val reactifyVersion = "3.0.5"
val scribeVersion = "2.7.10"
val youiVersion = "0.12.7"
val scalatestVersion = "3.0.5"
lazy val root = project.in(file("."))
.aggregate(core, resolve, launch, application, client, server, boot, nativeJVM)
.settings(
publishArtifact := false
)
lazy val core = project.in(file("core"))
.enablePlugins(BuildInfoPlugin)
.settings(
name := "jefe-core",
buildInfoKeys := Seq[BuildInfoKey](name, version, scalaVersion, sbtVersion),
buildInfoPackage := "com.outr.jefe",
libraryDependencies ++= Seq(
"org.powerscala" %% "powerscala-core" % powerscalaVersion,
"org.powerscala" %% "powerscala-concurrent" % powerscalaVersion,
"io.youi" %% "youi-core" % youiVersion
)
)
lazy val resolve = project.in(file("resolve"))
.settings(
name := "jefe-resolve",
libraryDependencies ++= Seq(
"io.get-coursier" %% "coursier" % coursierVersion,
"io.get-coursier" %% "coursier-cache" % coursierVersion,
"org.scala-sbt" %% "librarymanagement-core" % libraryManagementVersion,
"org.scala-sbt" %% "librarymanagement-ivy" % libraryManagementVersion,
"org.powerscala" %% "powerscala-core" % powerscalaVersion,
"org.powerscala" %% "powerscala-io" % powerscalaVersion,
"com.outr" %% "scribe-slf4j" % scribeVersion,
"org.scalatest" %% "scalatest" % scalatestVersion % "test"
)
)
.dependsOn(core)
lazy val launch = project.in(file("launch"))
.settings(
name := "jefe-launch",
libraryDependencies ++= Seq(
"com.outr" %% "scribe-slf4j" % scribeVersion,
"org.scalatest" %% "scalatest" % scalatestVersion % "test"
)
)
.dependsOn(core)
lazy val application = project.in(file("application"))
.settings(
name := "jefe-application",
libraryDependencies ++= Seq(
"com.outr" %% "reactify" % reactifyVersion,
"io.youi" %% "youi-client" % youiVersion,
"io.youi" %% "youi-server-undertow" % youiVersion,
"org.scalatest" %% "scalatest" % scalatestVersion % "test"
)
)
.dependsOn(resolve, launch)
lazy val server = project.in(file("server"))
.settings(
name := "jefe-server",
libraryDependencies ++= Seq(
"org.scalatest" %% "scalatest" % scalatestVersion % "test"
)
)
.dependsOn(core, application)
lazy val client = project.in(file("client"))
.settings(
name := "jefe-client",
libraryDependencies ++= Seq(
"io.youi" %% "youi-client" % youiVersion,
"org.scalatest" %% "scalatest" % scalatestVersion % "test"
)
)
.dependsOn(core, application, server)
lazy val boot = project.in(file("boot"))
.settings(
name := "jefe-boot",
fork := true,
artifact in (Compile, assembly) := {
val art = (artifact in (Compile, assembly)).value
art.withClassifier(Some("assembly"))
},
addArtifact(artifact in (Compile, assembly), assembly)
)
.dependsOn(client, server)
lazy val native = crossProject(JVMPlatform).in(file("native"))
.settings(
name := "jefe-native",
libraryDependencies += "com.outr" %%% "scribe" % scribeVersion
)
.jvmSettings(
assemblyJarName in assembly := "jefe-native.jar"
)
lazy val nativeJVM = native.jvm