File tree Expand file tree Collapse file tree 2 files changed +20
-1
lines changed Expand file tree Collapse file tree 2 files changed +20
-1
lines changed Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ organization := "org.scala-lang.modules"
22
33name := " scala-xml"
44
5- version := " 1.0-RC4"
5+ version := " 1.0.0 -RC4"
66
77// standard stuff follows:
88scalaVersion := " 2.11.0-M5"
@@ -111,6 +111,24 @@ definedTests in Test += (
111111 }, true , Array ())
112112 )
113113
114+ osgiSettings
115+
116+ val osgiVersion = version(_.replace('-' , '.' ))
117+
118+ OsgiKeys .bundleSymbolicName := s " ${organization.value}. ${name.value}"
119+
120+ OsgiKeys .bundleVersion := osgiVersion.value
121+
122+ OsgiKeys .exportPackage := Seq (s " scala.xml.*;version= ${version.value}" )
123+
124+ // Sources should also have a nice MANIFEST file
125+ packageOptions in packageSrc := Seq (Package .ManifestAttributes (
126+ (" Bundle-SymbolicName" , s " ${organization.value}. ${name.value}.source " ),
127+ (" Bundle-Name" , s " ${name.value} sources " ),
128+ (" Bundle-Version" , osgiVersion.value),
129+ (" Eclipse-SourceBundle" , s """ ${organization.value}. ${name.value};version=" ${osgiVersion.value}";roots:="." """ )
130+ ))
131+
114132
115133// TODO: mima
116134// import com.typesafe.tools.mima.plugin.MimaPlugin.mimaDefaultSettings
Original file line number Diff line number Diff line change 1+ addSbtPlugin(" com.typesafe.sbt" % " sbt-osgi" % " 0.6.0" )
You can’t perform that action at this time.
0 commit comments