-
Notifications
You must be signed in to change notification settings - Fork 9
/
build.sbt
128 lines (114 loc) · 5.16 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
fork := true
import sbtcrossproject.CrossPlugin.autoImport.{crossProject, CrossType}
scalaVersion := "2.13.10"
lazy val commonSettings = Seq(
organization := "edu.trinity",
version := "0.1.0-SNAPSHOT",
scalacOptions := Seq("-unchecked", "-deprecation"),
homepage := Some(url("https://github.com/MarkCLewis/SwiftVis2")),
scmInfo := Some(ScmInfo(url("https://github.com/MarkCLewis/SwiftVis2"),
"[email protected]:MarkCLewis/SwiftVis2.git")),
developers := List(Developer("MarkCLewis",
"Mark Lewis",
url("https://github.com/MarkCLewis"))),
licenses += ("Apache-2.0", url("http://www.apache.org/licenses/LICENSE-2.0")),
publishMavenStyle := true,
// Add sonatype repository settings
publishTo := Some(
if (isSnapshot.value)
Opts.resolver.sonatypeSnapshots
else
Opts.resolver.sonatypeStaging
)
)
lazy val core = (crossProject(JSPlatform, JVMPlatform).crossType(CrossType.Pure) in file("core"))
.settings(
commonSettings,
name := "SwiftVis2Core",
scalaVersion := "2.13.10",
javaOptions += "-Dio.netty.tryReflectionSetAccessible=true",
libraryDependencies += "org.scala-lang" % "scala-library" % scalaVersion.value,
libraryDependencies += "org.scala-lang" % "scala-compiler" % scalaVersion.value,
libraryDependencies += "org.scala-lang" % "scala-reflect" % scalaVersion.value,
libraryDependencies += "org.scalactic" %% "scalactic" % "3.2.10",
libraryDependencies += "org.scalatest" %% "scalatest" % "3.2.10" % "test"
)
lazy val coreJVM = core.jvm
lazy val coreJS = core.js
lazy val jvm = (project in file("jvm"))
.settings(
commonSettings,
name := "SwiftVis2JVM",
scalaVersion := "2.13.10"
).dependsOn(coreJVM)
lazy val fxrenderer = (project in file("fxrenderer"))
.settings(
commonSettings,
name := "SwiftVis2FX",
scalaVersion := "2.13.10",
libraryDependencies += "org.scalafx" %% "scalafx" % "19.0.0-R30",
).dependsOn(jvm)
lazy val swingrenderer = (project in file("swingrenderer"))
.settings(
commonSettings,
name := "SwiftVis2Swing",
scalaVersion := "2.13.10",
libraryDependencies += "org.scala-lang.modules" %% "scala-swing" % "3.0.0",
libraryDependencies += "org.scala-lang.modules" %% "scala-parallel-collections" % "1.0.4",
libraryDependencies += "org.scalactic" %% "scalactic" % "3.2.15",
libraryDependencies += "org.scalatest" %% "scalatest" % "3.2.15" % "test"
).dependsOn(jvm)
// lazy val polynote = (project in file("polynoteintegration"))
// .settings(
// commonSettings,
// name := "SwiftVis2Polynote",
// scalaVersion := "2.13.10",
// libraryDependencies += "org.polynote" %% "polynote-runtime" % "0.4.4"
// ).dependsOn(swingrenderer)
lazy val spark = (project in file("spark"))
.settings(
commonSettings,
name := "SwiftVis2Spark",
scalaVersion := "2.13.10",
scalacOptions := Seq("-unchecked", "-deprecation"),
libraryDependencies += "org.apache.spark" %% "spark-core" % "3.2.0",
libraryDependencies += "org.apache.spark" %% "spark-sql" % "3.2.0"
).dependsOn(coreJVM)
lazy val manTests = (project in file("manualtesting"))
.settings(
commonSettings,
name := "SwiftVis2ManualTests",
scalaVersion := "2.13.10",
scalacOptions := Seq("-unchecked", "-deprecation"),
libraryDependencies += "org.scala-lang" % "scala-library" % scalaVersion.value,
libraryDependencies += "org.scala-lang" % "scala-compiler" % scalaVersion.value,
libraryDependencies += "org.scala-lang" % "scala-reflect" % scalaVersion.value
).dependsOn(coreJVM, fxrenderer, swingrenderer, spark)
lazy val jsrenderer = (project in file("jsrenderer"))
.settings(commonSettings,
name := "SwiftVis2JS",
scalaVersion := "2.13.10",
scalacOptions := Seq("-unchecked", "-deprecation"),
libraryDependencies += "org.scala-lang" % "scala-library" % scalaVersion.value,
libraryDependencies += "org.scala-lang" % "scala-compiler" % scalaVersion.value,
libraryDependencies += "org.scala-lang" % "scala-reflect" % scalaVersion.value,
libraryDependencies += "org.scala-js" %%% "scalajs-dom" % "2.0.0"
).dependsOn(coreJS)
.enablePlugins(ScalaJSPlugin)
lazy val reactrenderer = (project in file("reactrenderer"))
.settings(commonSettings,
name := "SwiftVis2React",
scalaVersion := "2.13.10",
scalacOptions := Seq("-unchecked", "-deprecation"),
libraryDependencies += "org.scala-lang" % "scala-library" % scalaVersion.value,
libraryDependencies += "org.scala-lang" % "scala-compiler" % scalaVersion.value,
libraryDependencies += "org.scala-lang" % "scala-reflect" % scalaVersion.value,
//libraryDependencies += "org.scala-js" %%% "scalajs-dom" % "2.0.0",
libraryDependencies += "me.shadaj" %%% "slinky-core" % "0.6.8",
libraryDependencies += "me.shadaj" %%% "slinky-web" % "0.6.8",
//scalacOptions += "-P:scalajs:sjsDefinedByDefault",
//addCompilerPlugin("org.scalamacros" % "paradise" % "2.1.1" cross CrossVersion.full)
scalacOptions += "-Ymacro-annotations"
).dependsOn(coreJS)
.enablePlugins(ScalaJSPlugin)