forked from henrikerola/scaladin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sbt
37 lines (26 loc) · 1.2 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
import org.vaadin.sbt.VaadinPlugin._
name := "Scaladin"
version in ThisBuild := "3.2-SNAPSHOT"
organization in ThisBuild := "org.vaadin.addons"
scalaVersion in ThisBuild := "2.11.4"
crossScalaVersions in ThisBuild := Seq("2.10.4", "2.11.4")
scalacOptions in ThisBuild ++= Seq("-deprecation", "-unchecked", "-encoding", "UTF-8")
// sbt -Dscaladin.repository.path=../henrikerola.github.io/repository/releases publish
publishTo in ThisBuild := Some(Resolver.file("GitHub", file(Option(System.getProperty("scaladin.repository.path")).getOrElse("../henrikerola.github.io/repository/snapshots"))))
resolvers in ThisBuild += "Vaadin snapshots" at "https://oss.sonatype.org/content/repositories/vaadin-snapshots"
lazy val root = project.in(file(".")).aggregate(addon, demo)
lazy val addon = project
.settings(vaadinAddOnSettings :_*)
.settings(scalariformSettings :_*)
.settings(
name := "Scaladin",
libraryDependencies := Dependencies.addonDeps(scalaVersion.value)
)
lazy val demo = project
.enablePlugins(JettyPlugin)
.settings(vaadinWebSettings :_*)
.settings(scalariformSettings :_*)
.settings(
name := "scaladin-demo",
libraryDependencies ++= Dependencies.demoDeps
).dependsOn(addon)