Skip to content

Commit df36408

Browse files
author
starzu
committed
Deployment configuration
1 parent a9bf73a commit df36408

File tree

2 files changed

+40
-1
lines changed

2 files changed

+40
-1
lines changed

build.sbt

Lines changed: 36 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,39 @@ jsDependencies +=
2222
"org.webjars" % "jquery" % "2.2.0" / "2.2.0/jquery.js" minified "2.2.0/jquery.min.js"
2323

2424
lazy val root = project.in(file("."))
25-
.enablePlugins(ScalaJSPlugin)
25+
.enablePlugins(ScalaJSPlugin)
26+
27+
// Deployment configuration
28+
publishMavenStyle := true
29+
publishArtifact in Test := false
30+
pomIncludeRepository := { _ => false }
31+
32+
publishTo := {
33+
val nexus = "https://oss.sonatype.org/"
34+
if (isSnapshot.value)
35+
Some("snapshots" at nexus + "content/repositories/snapshots")
36+
else
37+
Some("releases" at nexus + "service/local/staging/deploy/maven2")
38+
}
39+
40+
pomExtra := {
41+
<url>https://github.com/UdashFramework/scala-js-jquery</url>
42+
<licenses>
43+
<license>
44+
<name>GPL-3.0</name>
45+
<url>http://opensource.org/licenses/GPL-3.0</url>
46+
<distribution>repo</distribution>
47+
</license>
48+
</licenses>
49+
<scm>
50+
<url>git@github.com:UdashFramework/scala-js-jquery.git</url>
51+
<connection>scm:git@github.com:UdashFramework/scala-js-jquery.git</connection>
52+
</scm>
53+
<developers>
54+
<developer>
55+
<id>avsystem</id>
56+
<name>AVSystem</name>
57+
<url>http://www.avsystem.com/</url>
58+
</developer>
59+
</developers>
60+
}

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.6")
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)