Skip to content
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

JDK + language level autodetection (and other improvements) #315

Open
wants to merge 6 commits into
base: sbt-0.13
Choose a base branch
from

Conversation

dansanduleac
Copy link

I noticed that, aside from some functionality for Android projects (which I don't use) the plugin doesn't make an effort to detect what JDK version and language level the sbt projects are using (instead it derives these from the JVM that sbt runs under, and sticks them onto the IDEA project).

With this change, I look at javacOptions in each sbt project's scope, and if -target is set, I set the SDK (specifically, the JDK library to use) and the language level to that version. If, further, -source is also set, then I set the language level to the version coming after -source.

Other improvements are minor source code rearrangements, things like that, but also a fix which allows slashes in ivy module names to be used (previously, they weren't normalized to _ and the plugin would crash when it couldn't find the XML file with a slash in it, that it supposedly generated for a library whose name contained slashes).

@mauhiz
Copy link

mauhiz commented Dec 2, 2014

👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants