-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.sbt
50 lines (47 loc) · 1.76 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
name in ThisBuild := "youi-template"
organization in ThisBuild := "io.youi"
version in ThisBuild := "1.2.0-SNAPSHOT"
scalaVersion in ThisBuild := "2.12.8"
resolvers in ThisBuild += Resolver.sonatypeRepo("releases")
publishTo in ThisBuild := sonatypePublishTo.value
sonatypeProfileName in ThisBuild := "io.youi"
publishMavenStyle in ThisBuild := true
licenses in ThisBuild := Seq("MIT" -> url("https://github.com/outr/youi-template/blob/master/LICENSE"))
sonatypeProjectHosting in ThisBuild := Some(xerial.sbt.Sonatype.GitHubHosting("outr", "youi-template", "matt@outr.com"))
homepage in ThisBuild := Some(url("https://github.com/outr/youi-template"))
scmInfo in ThisBuild := Some(
ScmInfo(
url("https://github.com/outr/youi-template"),
"scm:git@github.com:outr/youi-template.git"
)
)
developers in ThisBuild := List(
Developer(id="darkfrog", name="Matt Hicks", email="matt@matthicks.com", url=url("http://matthicks.com"))
)
val youi = "0.11.32"
val powerScala = "2.0.5"
val jsass = "5.7.3"
lazy val template = crossApplication.in(file("."))
.settings(
youiVersion := youi,
name := "youi-template"
)
.jvmSettings(
fork := true,
libraryDependencies ++= Seq(
"io.youi" %% "youi-optimizer" % youi,
"io.youi" %% "youi-ui" % youi,
"org.powerscala" %% "powerscala-io" % powerScala,
"io.bit3" % "jsass" % jsass
),
assemblyJarName in assembly := "youi-template.jar",
assemblyMergeStrategy in assembly := {
case "javax/annotation/Nonnull$Checker.class" => MergeStrategy.first
case "javax/annotation/meta/When.class" => MergeStrategy.first
case x =>
val oldStrategy = (assemblyMergeStrategy in assembly).value
oldStrategy(x)
}
)
lazy val templateJS = template.js
lazy val templateJVM = template.jvm