-
Notifications
You must be signed in to change notification settings - Fork 87
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
scala-collection-compat_2.12-0.1.0.jar does not contains scala.collection.BuildFrom due to osgi setting #30
Comments
Oh, it threw out everything that's not in the compat package... Too bad I didn't notice when looking at the jar. |
Thinking how to go forward on this issue, I think it would be best to get rid of the split packages. Instead, the This means we'd put the Code that cross-compiles would use |
What is the purpose of this osgi setting? |
To use our jars with osgi they need to define metadata. Split packages are problematic, search on google. I personally have no experience with osgi, few people around me do. But the metadata is improtant for those that want to use it. Our working mode is to continue emitting the metadata, rely on the community to report and fix issues. In any case, split packages will also cause problems with the java module system. |
Ok, I think your solution would work well. |
Note: the idea of putting |
The only problematic case I can think of is : import collection.immutable
import collection.compat._
immutable.Something Because in the last line We can document this wart. I don't expect people to often import |
I don't know how much of a problem this really is for OSGi. The library is coupled tightly to the standard library anyway so a split package might be just fine. AFAIK Java 9 modules don't support split packages though, so we may have to change it for that reason alone (i.e. if we want to support modules). |
I'm really not sure we should reuse
|
@lrytz Not sure what's on your previous lines. Normally, it's ambiguous, but REPL nests the imports. You don't need
|
scala-collection-compat/build.sbt
Lines 27 to 28 in 5d1f792
The text was updated successfully, but these errors were encountered: