forked from henrikerola/PopupButton
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sbt
39 lines (30 loc) · 1.44 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
import org.vaadin.sbt.VaadinPlugin._
import sbt.Keys._
import sbt.ScalaVersion
name := "PopupButton"
version in ThisBuild := "2.6-SNAPSHOT"
organization in ThisBuild := "org.vaadin.hene"
crossPaths in ThisBuild := false
autoScalaLibrary in ThisBuild := false
javacOptions in ThisBuild ++= Seq("-source", "1.6", "-target", "1.6")
lazy val root = project.in(file(".")).aggregate(addon, demo)
lazy val addon = project.settings(vaadinAddOnSettings :_*).settings(
name := "PopupButton",
libraryDependencies := Dependencies.addonDeps,
// Javadoc generation causes problems so disabling it for now
mappings in packageVaadinDirectoryZip <<= (packageSrc in Compile) map {
(src) => Seq((src, src.name))
},
sources in doc in Compile := List()
)
lazy val demo = project.settings(vaadinWebSettings :_*).settings(
name := "popupbutton-demo",
artifactName := { (sv: ScalaVersion, module: ModuleID, artifact: Artifact) => "PopupButton." + artifact.extension },
libraryDependencies := Dependencies.demoDeps,
javaOptions in compileVaadinWidgetsets := Seq("-Xss8M", "-Xmx512M", "-XX:MaxPermSize=512M"),
vaadinOptions in compileVaadinWidgetsets := Seq("-strict", "-draftCompile"),
enableCompileVaadinWidgetsets in resourceGenerators := false,
javaOptions in vaadinDevMode ++= Seq("-Xdebug", "-Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=5005"),
// JavaDoc generation causes problems
sources in doc in Compile := List()
).dependsOn(addon)