-
Notifications
You must be signed in to change notification settings - Fork 3
/
build.sbt
162 lines (148 loc) · 5.99 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
ThisBuild / scalaVersion := "2.13.4" //12.6
val circeVersion = "0.12.3"
//crossScalaVersions := Seq("2.13.0-M4-pre-20d3c21", "2.12.6")
//scalaVersion := crossScalaVersions.value.head
lazy val common_settings = Seq(
scalaVersion := "2.13.4", // 12.4
scalacOptions ++= Seq("-Ytasty-reader"),
libraryDependencies ++= Seq(
"junit" % "junit" % "4.12",
"org.choco-solver" % "choco-solver" % "4.0.6",
"org.scala-lang" % "scala-compiler" % scalaVersion.value,
"org.ow2.sat4j" % "org.ow2.sat4j.core" % "2.3.5" withSources() withJavadoc(),
// "org.scala-lang.modules" %% "scala-parser-combinators" % "1.0.6",
// Last stable release
"org.scalanlp" %% "breeze" % "1.1",
// Native libraries are not included by default. add this if you want them (as of 0.7)
// Native libraries greatly improve performance, but increase jar sizes.
// It also packages various blas implementations, which have licenses that may or may not
// be compatible with the Apache License. No GPL code, as best I know.
"org.scalanlp" %% "breeze-natives" % "1.1",
// The visualization library is distributed separately as well.
// It depends on LGPL code
"org.scalanlp" %% "breeze-viz" % "1.1",
// Optimus to solve quadratic programming problem
"com.github.vagmcs" %% "optimus" % "3.2.4",
"com.github.vagmcs" %% "optimus-solver-oj" % "3.2.4",
"org.typelevel" %%% "cats-parse" % "0.3.0", // 0.3.4
"org.typelevel" %%% "cats-core" % "2.1.1"
),
addCompilerPlugin("com.olegpy" %% "better-monadic-for" % "0.3.1")
,
Compile / unmanagedJars ++= Seq(
baseDirectory.value / "../lib/reo-1.0b.jar"
)
)
lazy val server = (project in file("server"))
.dependsOn(localJS, remoteJS)
.enablePlugins(PlayScala)
.disablePlugins(ScalaJSPlugin) //, WorkbenchPlugin)
.settings(
common_settings,
name := "server",
version := "1.0",
scalacOptions ++= Seq("-unchecked", "-deprecation","-feature"),
resolvers ++= Seq(
"scalaz-bintray" at "https://dl.bintray.com/scalaz/releases",
("Akka Snapshot Repository" at "http://repo.akka.io/snapshots/").withAllowInsecureProtocol(true),
("Typesafe repository" at "http://repo.typesafe.com/typesafe/releases/").withAllowInsecureProtocol(true)
),
libraryDependencies ++= Seq(
"org.scala-lang.modules" %% "scala-parser-combinators" % "1.1.2",//"1.1.0",
"com.typesafe.play" %% "play" % "2.7.4",
"javax.xml.bind" % "jaxb-api" % "2.3.0",
// "com.typesafe.play" %% "play-json" % "2.6.9",
jdbc , ehcache , ws , specs2 % Test , guice
),
// unmanagedResourceDirectories in Test += Seq(baseDirectory ( _ /"target/web/public/test" )),
Compile / unmanagedSourceDirectories ++= Seq(
baseDirectory.value / "../lib/preo/src/main/scala",
baseDirectory.value / "../lib/hprog/src/main/scala",
baseDirectory.value / "../lib/ifta/src/main/scala",
baseDirectory.value / "../lib/virtuoso/src/main/scala",
// baseDirectory.value / "../lib/reactiveDsl/src/main/scala"//,
// baseDirectory.value / "../lib/choreo/src/main/scala"
)
)
lazy val choreo = project.in(file("lib/choreo"))
.enablePlugins(ScalaJSPlugin)
.settings(scalaVersion := "3.0.0-M1")
lazy val teamA = project.in(file("lib/team-a"))
.enablePlugins(ScalaJSPlugin)
.settings(scalaVersion := "3.0.0-M1")
lazy val arx = project.in(file("lib/reactiveDsl"))
.enablePlugins(ScalaJSPlugin)
.settings(scalaVersion := "3.0.0-M1")
//lazy val lince = project.in(file("lib/hprog"))
// .enablePlugins(ScalaJSPlugin)
// .settings(scalaVersion := "3.0.0-M1")
lazy val javascript_settings = Seq(
// Compile/run := {},
version := "1.0",
scalacOptions ++= Seq("-unchecked", "-deprecation","-feature", "-Ytasty-reader"),
// hello := {println("Hello World!")},
libraryDependencies ++= Seq(
"be.doeraene" %%% "scalajs-jquery" % "1.0.0", //"0.9.1",
/////
"org.scala-js" %%% "scalajs-dom" % "1.1.0", //"0.9.1",
"com.lihaoyi" %%% "scalatags" % "0.9.1", //"0.6.7",
//"org.singlespaced" %%% "scalajs-d3" % "0.3.4",
"org.scala-lang.modules" %%% "scala-parser-combinators" % "1.1.2",//"1.1.0",
"io.circe" %% "circe-core" % circeVersion, // json parser
"io.circe" %% "circe-generic" % circeVersion,
"io.circe" %% "circe-parser" % circeVersion
)
,
Compile / unmanagedSourceDirectories ++= Seq(
baseDirectory.value / "../lib/preo/src/main/scala",
baseDirectory.value / "../lib/hprog/src/main/scala",
baseDirectory.value / "../lib/ifta/src/main/scala",
baseDirectory.value / "../lib/virtuoso/src/main/scala",
// baseDirectory.value / "../lib/reactiveDsl/src/main/scala"//,
// baseDirectory.value / "../lib/choreo/src/main/scala"
)
)
lazy val commonJS = (project in file("commonJS"))
.enablePlugins(ScalaJSPlugin) //, WorkbenchPlugin)
.disablePlugins(PlayScala)
.settings(
common_settings,
name := "common_js",
javascript_settings//,
//Compile / run := (choreo / Compile / run).evaluated
).aggregate(choreo).dependsOn(choreo)
.aggregate(teamA).dependsOn(teamA)
.aggregate(arx).dependsOn(arx)
// .aggregate(lince).dependsOn(lince)
lazy val localJS = (project in file("localJS"))
.dependsOn(commonJS)
.enablePlugins(ScalaJSPlugin)
.disablePlugins(PlayScala)
.settings(
common_settings,
name := "local_js",
javascript_settings
)
lazy val remoteJS= (project in file("remoteJS"))
.dependsOn(commonJS)
.enablePlugins(ScalaJSPlugin)
.disablePlugins(PlayScala)
.settings(
common_settings,
name := "remote_js",
javascript_settings,
resolvers ++= Seq(
("Typesafe repository" at "http://repo.typesafe.com/typesafe/releases/").withAllowInsecureProtocol(true)
),
libraryDependencies ++= Seq(
// "com.typesafe.play" %% "play" % "2.6.11"
"com.typesafe.play" %% "play-json" % "2.9.1"
)
)
// todo: add here a task for, when compiling the server, copying the content into the app/...
//
//lazy val reotools = (project in file("."))
// .aggregate(server)
// .settings(
// Compile/mainClass := server/Compile/mainClass
// )