@@ -12,9 +12,6 @@ object ScalaModulePlugin extends Plugin {
1212 case sv => sbt.CrossVersion .binaryScalaVersion(sv)
1313 }
1414
15- // a setting-transform to turn the regular version into something osgi can deal with
16- val osgiVersion = version(_.replace('-' , '.' ))
17-
1815 lazy val scalaModuleSettings = Seq (
1916 repoName := name.value,
2017
@@ -78,8 +75,13 @@ object ScalaModulePlugin extends Plugin {
7875 <name >Typesafe , Inc .</name >
7976 </developer >
8077 </developers >
81- ),
78+ )
79+ )
8280
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 (
8385 OsgiKeys .bundleSymbolicName := s " ${organization.value}. ${name.value}" ,
8486 OsgiKeys .bundleVersion := osgiVersion.value,
8587
@@ -90,13 +92,14 @@ object ScalaModulePlugin extends Plugin {
9092 (" Bundle-Version" , osgiVersion.value),
9193 (" Eclipse-SourceBundle" , s """ ${organization.value}. ${name.value};version=" ${osgiVersion.value}";roots:="." """ )
9294 ))
95+ )
9396
9497
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 )
102105}
0 commit comments