-
Notifications
You must be signed in to change notification settings - Fork 43
Cross compile to sbt2 #188
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
base: main
Are you sure you want to change the base?
Conversation
|
I guess don't exactly know how the testing part works, can somebody help on this part? |
|
Could you run |
|
Of course, done |
build.sbt
Outdated
|
|
||
| ThisBuild / (pluginCrossBuild / sbtVersion) := { | ||
| scalaBinaryVersion.value match { | ||
| case "2.12" => "1.5.8" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| case "2.12" => "1.5.8" | |
| case "2.12" => "1.9.9" |
If this plugin wants to run tests on JDK 21, then the minimum version should be 1.9.9.
|
https://github.com/sbt/sbt-osgi/blob/main/.scalafmt.conf probably needs to be updated to runner.dialect = Scala212Source3 |
|
Thanks, that's a lot better. Some test are not passing yet. For what I understand it seems to be caused by some sbt 2 instabilities. Is that what you get from the error as well? |
A first version of sbt-osgi cross compling to sbt 2.0.
I did the strict minimum to make the plugin and the test compile and run, so it is mergeable.
There is more to do especially on the caching side. I'll work on it when I'll have some time.