Skip to content

Commit 138a7f0

Browse files
author
starzu
committed
Deployment configuration
1 parent d8d5369 commit 138a7f0

File tree

2 files changed

+39
-0
lines changed

2 files changed

+39
-0
lines changed

build.sbt

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,3 +30,38 @@ scalaJSUseRhino in Test := false
3030

3131
lazy val root = project.in(file("."))
3232
.enablePlugins(ScalaJSPlugin)
33+
34+
// Deployment configuration
35+
publishMavenStyle := true
36+
publishArtifact in Test := false
37+
pomIncludeRepository := { _ => false }
38+
39+
publishTo := {
40+
val nexus = "https://oss.sonatype.org/"
41+
if (isSnapshot.value)
42+
Some("snapshots" at nexus + "content/repositories/snapshots")
43+
else
44+
Some("releases" at nexus + "service/local/staging/deploy/maven2")
45+
}
46+
47+
pomExtra := {
48+
<url>https://github.com/UdashFramework/scala-js-jquery</url>
49+
<licenses>
50+
<license>
51+
<name>Apache v.2 License</name>
52+
<url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
53+
<distribution>repo</distribution>
54+
</license>
55+
</licenses>
56+
<scm>
57+
<url>git@github.com:UdashFramework/scala-js-jquery.git</url>
58+
<connection>scm:git@github.com:UdashFramework/scala-js-jquery.git</connection>
59+
</scm>
60+
<developers>
61+
<developer>
62+
<id>avsystem</id>
63+
<name>AVSystem</name>
64+
<url>http://www.avsystem.com/</url>
65+
</developer>
66+
</developers>
67+
}

project/plugins.sbt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
11
logLevel := Level.Warn
22

33
addSbtPlugin("org.scala-js" % "sbt-scalajs" % "0.6.9")
4+
5+
// Deployment configuration
6+
addSbtPlugin("com.jsuereth" % "sbt-pgp" % "1.0.0")
7+
addSbtPlugin("org.xerial.sbt" % "sbt-sonatype" % "1.1")

0 commit comments

Comments
 (0)