Skip to content

Commit 4b8f939

Browse files
committed
Added OSGi settings to build.
1 parent e92a62b commit 4b8f939

File tree

3 files changed

+32
-0
lines changed

3 files changed

+32
-0
lines changed

README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,10 @@
11
# ScalaTest + Selenium
22
ScalaTest + Selenium provides integration support between ScalaTest and Selenium.
3+
4+
**Publishing**
5+
6+
Please use the following commands to publish to Sonatype:
7+
8+
```
9+
$ sbt +publishSigned
10+
```

build.sbt

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,28 @@ testOptions in Test :=
3838
"-l", "org.scalatest.tags.Slow"
3939
))
4040

41+
enablePlugins(SbtOsgi)
42+
43+
osgiSettings
44+
45+
OsgiKeys.exportPackage := Seq(
46+
"org.scalatestplus.selenium.*"
47+
)
48+
49+
OsgiKeys.importPackage := Seq(
50+
"org.scalatest.*",
51+
"org.scalactic.*",
52+
"scala.*;version=\"$<range;[==,=+);$<replace;"+scalaBinaryVersion.value+";-;.>>\"",
53+
"*;resolution:=optional"
54+
)
55+
56+
OsgiKeys.additionalHeaders:= Map(
57+
"Bundle-Name" -> "ScalaTestPlusSelenium",
58+
"Bundle-Description" -> "ScalaTest+Selenium is an open-source integration library between ScalaTest and Selenium for Scala projects.",
59+
"Bundle-DocURL" -> "http://www.scalatest.org/",
60+
"Bundle-Vendor" -> "Artima, Inc."
61+
)
62+
4163
publishTo := {
4264
val nexus = "https://oss.sonatype.org/"
4365
Some("publish-releases" at nexus + "service/local/staging/deploy/maven2")

project/plugins.sbt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
11
addSbtPlugin("com.jsuereth" % "sbt-pgp" % "1.1.1")
22

33
addSbtPlugin("com.geirsson" % "sbt-ci-release" % "1.2.2")
4+
5+
addSbtPlugin("com.typesafe.sbt" % "sbt-osgi" % "0.9.4")

0 commit comments

Comments
 (0)