Bundle manifest in right way#131
Conversation
Signed-off-by: JingZhang Chen <iRoiocam@gmail.com>
This does not mean, the After you change, you can see that the import |
|
As @lefou mentioned, this is a legitimate regression. There is a reason we moved away from I even tried to do alternate solutions like #103 but I then hit other problems. |
Signed-off-by: JingZhang Chen <iRoiocam@gmail.com>
Thanks, it is very helpful for understanding how to verify this. I am just thinking, why don't we just replace the By using this approach, we could let What do you think? @lefou |
If you mean replacing |
Not just replace - Compile / dependencyClasspathAsJars ++= notOnJdk8((CompileJdk9 / exportedProducts).value))
+ Compile / fullClasspath ++= notOnJdk8((CompileJdk9 / exportedProducts).value))I have to say, as far as I know, this kind of redefining tasks does not have any solution that holds good for all time.
Yes, we need to these changes on Pekko. - Compile / dependencyClasspathAsJars ++= notOnJdk8((CompileJdk9 / exportedProducts).value))
+ Compile / exportedProducts ++= notOnJdk8((CompileJdk9 / exportedProducts).value))And add these into the depend walker check, In case of any change from the future causes the regression of issues. |
|
@mdedetrich I just found another way to still make test-10 pass. (Compile / exportJars) := false,
- (Compile / fullClasspath) := concat(Compile / exportedProducts, Compile / dependencyClasspathAsJars).value,
+ (Compile / exportedProducts) ++= (Compile / dependencyClasspathAsJars).value,That means the
And something we already know:
One more bonus: sbt support key rank |
|
I think the current implementation is correct, as like as #104 discussion. |

Motivation
Rollback to use (Compile / fullClasspath), import manifest via
(Compile / internalDependencyAsJars)Verifed
[info] [error] java.lang.RuntimeException: Expected 'Import-Package: ' and 'proj1;version="[1.2,2)"' in manifest!
[info] [error] Import-Package: proj1,scala.reflect;version="[2.12,3)"
Conclusion
Only
test-10-multi-project-dependsOn-includePackage-versionswill complain, We need additional submissions to fix the packaging of this information. It seems that we have added an additional package namescala.reflect.Waiting feedback from @mdedetrich