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
@@ -109,6 +109,24 @@ definedTests in Test += (
109109 }, true , Array ())
110110 )
111111
112+ osgiSettings
113+
114+ val osgiVersion = version(_.replace('-' , '.' ))
115+
116+ OsgiKeys .bundleSymbolicName := s " ${organization.value}. ${name.value}"
117+
118+ OsgiKeys .bundleVersion := osgiVersion.value
119+
120+ OsgiKeys .exportPackage := Seq (s " scala.util.parsing.*;version= ${version.value}" )
121+
122+ // Sources should also have a nice MANIFEST file
123+ packageOptions in packageSrc := Seq (Package .ManifestAttributes (
124+ (" Bundle-SymbolicName" , s " ${organization.value}. ${name.value}.source " ),
125+ (" Bundle-Name" , s " ${name.value} sources " ),
126+ (" Bundle-Version" , osgiVersion.value),
127+ (" Eclipse-SourceBundle" , s """ ${organization.value}. ${name.value};version=" ${osgiVersion.value}";roots:="." """ )
128+ ))
129+
112130
113131// TODO: mima
114132// 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