-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.sbt
55 lines (43 loc) · 1.58 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
51
52
53
54
55
name := "scalajs-ckeditor4"
description in ThisBuild := "Scala.js wrapper API for CKEditor 4."
organization in ThisBuild := "com.greencatsoft"
version in ThisBuild := "0.1-SNAPSHOT"
homepage in ThisBuild := Some(url("http://github.com/greencatsoft/scalajs-ckeditor4"))
licenses in ThisBuild := Seq("Apache License 2.0" -> url("http://www.apache.org/licenses/LICENSE-2.0.html"))
pomExtra in ThisBuild := (
<scm>
<url>[email protected]:greencatsoft/scalajs-ckeditor4.git</url>
<connection>scm:git:[email protected]:greencatsoft/scalajs-ckeditor4.git</connection>
</scm>
<developers>
<developer>
<id>mmx900</id>
<name>Soyu Kim</name>
<url>http://github.com/mmx900</url>
</developer>
</developers>
)
resolvers in ThisBuild += Resolver.sonatypeRepo("snapshots")
publishTo := {
val nexus = "https://oss.sonatype.org/"
if(isSnapshot.value)
Some("snapshots" at nexus + "content/repositories/snapshots")
else
Some("releases" at nexus + "service/local/staging/deploy/maven2")
}
publishMavenStyle := true
pomIncludeRepository := { _ => false }
val scalaSettings = Seq(
scalaVersion := "2.12.7",
scalacOptions ++= Seq("-feature","-deprecation"),
unmanagedSourceDirectories in Compile := (scalaSource in Compile).value :: Nil,
unmanagedSourceDirectories in Test := (scalaSource in Test).value :: Nil)
lazy val ckeditor = (project in file("."))
.settings(
libraryDependencies ++= Seq(
"org.scala-js" %%% "scalajs-dom" % "0.9.6",
"com.github.japgolly.scalacss" %%% "core" % "0.5.5"
),
scalaSettings
)
.enablePlugins(ScalaJSPlugin)