forked from scalafx/scalafx-ensemble
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sbt
31 lines (20 loc) · 1.01 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
name := "scalafxEnsemble"
version := "1.0-SNAPSHOT"
organization := "org.scalafx"
scalaVersion := "2.10.2"
assemblySettings
libraryDependencies ++= Seq(
"org.scalafx" %% "scalafx" % "1.0.0-M7-SNAPSHOT",
"org.scalatest" %% "scalatest" % "1.9.2" % "test"
)
resolvers += "Sonatype OSS Snapshots" at "https://oss.sonatype.org/content/repositories/snapshots"
// Sources should also be copied to output, so the sample code, for the viewer,
// can be loaded from the same file that is used to execute the example
unmanagedResourceDirectories in Compile <+= baseDirectory { _/"src/main/scala"}
// Set the prompt (for this build) to include the project id.
shellPrompt := { state => System.getProperty("user.name") + ":" + Project.extract(state).currentRef.project + "> " }
// Add JavaFX 2.0 to classpath
unmanagedJars in Compile += Attributed.blank(file(System.getenv("JAVA_HOME") + "/jre/lib/jfxrt.jar"))
// Run in separate VM, so there are no issues with double initialization of JavaFX
fork := true
fork in Test := true