@@ -12,9 +12,6 @@ object ScalaModulePlugin extends Plugin {
12
12
case sv => sbt.CrossVersion .binaryScalaVersion(sv)
13
13
}
14
14
15
- // a setting-transform to turn the regular version into something osgi can deal with
16
- val osgiVersion = version(_.replace('-' , '.' ))
17
-
18
15
lazy val scalaModuleSettings = Seq (
19
16
repoName := name.value,
20
17
@@ -78,8 +75,13 @@ object ScalaModulePlugin extends Plugin {
78
75
<name >Typesafe , Inc .</name >
79
76
</developer >
80
77
</developers >
81
- ),
78
+ )
79
+ )
82
80
81
+ // a setting-transform to turn the regular version into something osgi can deal with
82
+ val osgiVersion = version(_.replace('-' , '.' ))
83
+
84
+ lazy val scalaModuleOsgiSettings = SbtOsgi .osgiSettings ++ Seq (
83
85
OsgiKeys .bundleSymbolicName := s " ${organization.value}. ${name.value}" ,
84
86
OsgiKeys .bundleVersion := osgiVersion.value,
85
87
@@ -90,13 +92,14 @@ object ScalaModulePlugin extends Plugin {
90
92
(" Bundle-Version" , osgiVersion.value),
91
93
(" Eclipse-SourceBundle" , s """ ${organization.value}. ${name.value};version=" ${osgiVersion.value}";roots:="." """ )
92
94
))
95
+ )
93
96
94
97
95
- // TODO: mima
96
- // resolvers += Classpaths.typesafeResolver
97
- // addSbtPlugin("com.typesafe" % "sbt-mima-plugin" % "0.1.5")
98
- // import com.typesafe.tools. mima. plugin.MimaPlugin.mimaDefaultSettings
99
- // import com.typesafe.tools.mima.plugin.MimaKeys.previousArtifact
100
- // previousArtifact := Some(organization.value %% name.value % binaryReferenceVersion.value)
101
- )
98
+
99
+ // TODO: mima
100
+ // resolvers += Classpaths.typesafeResolver
101
+ // addSbtPlugin(" com.typesafe" % "sbt- mima- plugin" % "0.1.5")
102
+ // import com.typesafe.tools.mima.plugin.MimaPlugin.mimaDefaultSettings
103
+ // import com.typesafe.tools.mima.plugin.MimaKeys.previousArtifact
104
+ // previousArtifact := Some(organization.value %% name.value % binaryReferenceVersion.value )
102
105
}
0 commit comments