-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathbuild.sbt
42 lines (33 loc) · 984 Bytes
/
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
lazy val root = project.in(file(".")).
enablePlugins(ScalaJSPlugin)
name := "Scala.js Ace"
normalizedName := "scalajs-ace"
version := "0.0.4"
organization := "com.scalawarrior"
scalaVersion := "2.11.8"
crossScalaVersions := Seq("2.11.8", "2.12.1")
libraryDependencies +=
"org.scala-js" %%% "scalajs-dom" % "0.9.1"
scalacOptions ++= Seq(
"-deprecation",
"-encoding", "UTF-8",
"-feature",
"-unchecked",
"-Xlint",
"-Yno-adapted-args",
"-Ywarn-numeric-widen",
"-Ywarn-value-discard",
"-Xfuture",
"-Ywarn-unused-import"
)
publishTo := {
val repoInfo =
if (version.value.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"))
}