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
Enable hyperlinking to Java docs #8284
Conversation
Squashing and rebasing... |
5c91f1f
to
da6a5e7
Compare
@@ -175,6 +175,16 @@ lazy val commonSettings = instanceSettings ++ clearSourceAndResourceDirectories | |||
), | |||
//maxErrors := 10, | |||
setIncOptions, | |||
// http://stackoverflow.com/questions/16934488 | |||
apiMappings ++= { | |||
Option(System.getProperty("sun.boot.class.path")).flatMap { classPath => |
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.
This returns None
on JDK 11. Switching to JDK 11 as our main build/test/publish environment is eons off, so I don't think it makes the PR unmergeable. I see over at https://github.com/ThoughtWorksInc/sbt-api-mappings/pull/13/files they made it print a warning in this case. If not a warning, perhaps it merits at least a comment?
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.
I figured a warning would just be ignored, but it could also double as a code comment, so I'll add a warning.
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.
It would be cool if that if the API mappings were to stop working for a release, either for this snippet or for some unforeseen reason, and it would be fatal. I wasn't sure how to guarantee that they're working, though.
da6a5e7
to
16d7108
Compare
@SethTisue Are you satisfied with the current version? |
thank you Aaron for your attention to this, I think it's a significant usability win |
I hope so. Thanks for reviewing and accepting the fix. |
apiMappings
of sbt build.Fixes scala/bug#11655.