@@ -4,11 +4,11 @@ scalaVersion := "2.10.3"
4
4
// scalaHome := Some(file("/code/scala2/build/pack"))
5
5
6
6
7
- organization := " org.scala-lang.modules.async " // TODO new org name under scala-lang.
7
+ organization := " org.scala-lang.modules.scala-async "
8
8
9
9
name := " scala-async"
10
10
11
- version := " 1.0 .0-SNAPSHOT"
11
+ version := " 0.9 .0-SNAPSHOT"
12
12
13
13
libraryDependencies <++= (scalaVersion) {
14
14
sv => Seq (
@@ -66,7 +66,7 @@ mappings in (Compile, packageBin) += {
66
66
}
67
67
68
68
69
- description := " An asynchronous programming facility for Scala, in the spirit of C# await/async "
69
+ description := " An asynchronous programming facility for Scala that offers a direct API for working with Futures. "
70
70
71
71
homepage := Some (url(" http://github.com/scala/async" ))
72
72
@@ -113,3 +113,21 @@ pomExtra := (
113
113
<connection >scm: git: git@ github.com: scala/ async.git</connection >
114
114
</scm >
115
115
)
116
+
117
+ osgiSettings
118
+
119
+ val osgiVersion = version(_.replace('-' , '.' ))
120
+
121
+ OsgiKeys .bundleSymbolicName := s " ${organization.value}. ${name.value}"
122
+
123
+ OsgiKeys .bundleVersion := osgiVersion.value
124
+
125
+ OsgiKeys .exportPackage := Seq (s " scala.async.*;version= ${version.value}" )
126
+
127
+ // Sources should also have a nice MANIFEST file
128
+ packageOptions in packageSrc := Seq (Package .ManifestAttributes (
129
+ (" Bundle-SymbolicName" , s " ${organization.value}. ${name.value}.source " ),
130
+ (" Bundle-Name" , s " ${name.value} sources " ),
131
+ (" Bundle-Version" , osgiVersion.value),
132
+ (" Eclipse-SourceBundle" , s """ ${organization.value}. ${name.value};version=" ${osgiVersion.value}";roots:="." """ )
133
+ ))
0 commit comments