-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathbuild.sbt
45 lines (35 loc) · 1.08 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
lazy val root = project.in(file(".")).
enablePlugins(ScalaJSPlugin)
name := "Scala.js CreateJS"
normalizedName := "scalajs-createjs"
version := "0.0.2-SNAPSHOT"
organization := "com.scalawarrior"
scalaVersion := "2.11.8"
//crossScalaVersions := Seq("2.10.4", "2.11.5")
libraryDependencies +=
"org.scala-js" %%% "scalajs-dom" % "0.9.1"
//jsDependencies +=
// "org.webjars" % "jquery" % "2.1.3" / "2.1.3/jquery.js"
scalacOptions ++= Seq(
"-deprecation",
"-encoding", "UTF-8",
"-feature",
"-unchecked",
"-Xlint",
"-Yno-adapted-args",
"-Ywarn-numeric-widen",
"-Ywarn-value-discard",
"-Xfuture",
"-Ywarn-unused-import"
)
publishTo <<= (version) { version: String =>
val repoInfo =
if (version.trim.endsWith("SNAPSHOT"))
("amateras snapshots" -> "/home/groups/a/am/amateras/htdocs/mvn-snapshot/")
else
("amateras releases" -> "/home/groups/a/am/amateras/htdocs/mvn/")
Some(Resolver.ssh(
repoInfo._1,
"shell.sourceforge.jp",
repoInfo._2) as(System.getProperty("user.name"), (Path.userHome / ".ssh" / "id_rsa").asFile) withPermissions("0664"))
}