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"
2
2
3
3
name := " scala-parser-combinators"
4
4
5
- version := " 1.0-RC2"
5
+ version := " 1.0.0 -RC2"
6
6
7
7
scalaVersion := " 2.11.0-M5"
8
8
@@ -109,6 +109,24 @@ definedTests in Test += (
109
109
}, true , Array ())
110
110
)
111
111
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
+
112
130
113
131
// TODO: mima
114
132
// 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