@@ -20,6 +20,7 @@ lazy val commonSettings = Seq(
20
20
lazy val root = project
21
21
.in(file(" ." ))
22
22
.settings(commonSettings)
23
+ .settings(name := " scala-collection-compat" )
23
24
.settings(dontPublish)
24
25
.aggregate(
25
26
compat211JVM,
@@ -50,22 +51,10 @@ lazy val scala211 = "2.11.12"
50
51
lazy val scala212 = " 2.12.11"
51
52
lazy val scala213 = " 2.13.1"
52
53
53
- /** Create an OSGi version range for standard Scala versioning
54
- * schemes that describes binary compatible versions. */
55
- def osgiVersionRange (version : String , requireMicro : Boolean = false ): String =
56
- if (version contains '-' ) " ${@}" // M, RC or SNAPSHOT -> exact version
57
- else if (requireMicro) " ${range;[===,=+)}" // At least the same micro version
58
- else " ${range;[==,=+)}" // Any binary compatible version
59
-
60
- /** Create an OSGi Import-Package version specification. */
61
- def osgiImport (pattern : String , version : String , requireMicro : Boolean = false ): String =
62
- pattern + " ;version=\" " + osgiVersionRange(version, requireMicro) + " \" "
63
-
64
54
lazy val compat = MultiScalaCrossProject (JSPlatform , JVMPlatform , NativePlatform )(
65
55
" compat" ,
66
56
_.settings(scalaModuleSettings)
67
57
.settings(commonSettings)
68
- .jvmSettings(scalaModuleSettingsJVM)
69
58
.settings(
70
59
name := " scala-collection-compat" ,
71
60
moduleName := " scala-collection-compat" ,
@@ -78,15 +67,6 @@ lazy val compat = MultiScalaCrossProject(JSPlatform, JVMPlatform, NativePlatform
78
67
Test / sourceDirectories += (ThisBuild / baseDirectory).value / " compat/src/test/scala-jvm"
79
68
)
80
69
.jvmSettings(
81
- OsgiKeys .exportPackage := {
82
- if (scalaVersion.value.startsWith(" 2.13." ))
83
- Seq (s " scala.collection.compat.*;version= ${version.value}" )
84
- else
85
- Seq (
86
- s " scala.collection.compat.*;version= ${version.value},scala.jdk.*;version= ${version.value}" )
87
- },
88
- OsgiKeys .importPackage := Seq (osgiImport(" *" , scalaBinaryVersion.value)),
89
- OsgiKeys .privatePackage := Nil ,
90
70
junit
91
71
)
92
72
.jsSettings(
0 commit comments