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-parser-combinators"
44
5- version := " 1.0-RC2"
5+ version := " 1.0.0 -RC2"
66
77scalaVersion := " 2.11.0-M5"
88
@@ -103,6 +103,24 @@ definedTests in Test += (
103103 }, true , Array ())
104104 )
105105
106+ osgiSettings
107+
108+ val osgiVersion = version(_.replace('-' , '.' ))
109+
110+ OsgiKeys .bundleSymbolicName := s " ${organization.value}. ${name.value}"
111+
112+ OsgiKeys .bundleVersion := osgiVersion.value
113+
114+ OsgiKeys .exportPackage := Seq (s " scala.util.parsing.*;version= ${version.value}" )
115+
116+ // Sources should also have a nice MANIFEST file
117+ packageOptions in packageSrc := Seq (Package .ManifestAttributes (
118+ (" Bundle-SymbolicName" , s " ${organization.value}. ${name.value}.source " ),
119+ (" Bundle-Name" , s " ${name.value} sources " ),
120+ (" Bundle-Version" , osgiVersion.value),
121+ (" Eclipse-SourceBundle" , s """ ${organization.value}. ${name.value};version=" ${osgiVersion.value}";roots:="." """ )
122+ ))
123+
106124
107125// TODO: mima
108126// 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