-
Notifications
You must be signed in to change notification settings - Fork 177
Support Java API doc Scaladoc/Unidoc References #1420
Conversation
a505ac3
to
be27cea
Compare
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 looks pretty simple. Can anything go wrong here?
I have no earthly idea why this isn't building on Travis... 🤷♀️ This works locally with a clean clone and a nuked |
It looks like the plugin has been compiled for Java 8 and won't work with Java 11 or 13. |
Ugh, thanks Jim. Scala does something different for linking to Java API docs. I can at least add that. |
The incompatibility doesn't appear to be fundamental in nature. If you generate a full log, you get:
and the code at that location is:
|
be27cea
to
65d6827
Compare
This adds a build.sbt apiMappings to allow for Scaladoc/Unidoc linking to Java API documentation. This uses the exact strategy that Scala upstream uses for linking. Signed-off-by: Schuyler Eldridge <schuyler.eldridge@ibm.com>
Signed-off-by: Schuyler Eldridge <schuyler.eldridge@ibm.com>
65d6827
to
b1610d2
Compare
I switched this to not use the sbt-api-mappings plugin to avoid the issue that @ucbjrl found (also that plugin is sparsely updated making me nervous). Instead, this uses the same strategy that Scala uses to link against Java API documentation. The small example included works for unidoc. |
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.
lgtm
* Link to Java API Documentation This adds a build.sbt apiMappings to allow for Scaladoc/Unidoc linking to Java API documentation. This uses the exact strategy that Scala upstream uses for linking. Signed-off-by: Schuyler Eldridge <schuyler.eldridge@ibm.com> * Add example of Java and Scala API docs linking Signed-off-by: Schuyler Eldridge <schuyler.eldridge@ibm.com> Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> (cherry picked from commit bdac6e1) # Conflicts: # build.sbt
Manually back-ported. * Link to Java API Documentation This adds a build.sbt apiMappings to allow for Scaladoc/Unidoc linking to Java API documentation. This uses the exact strategy that Scala upstream uses for linking. Signed-off-by: Schuyler Eldridge <schuyler.eldridge@ibm.com> * Add example of Java and Scala API docs linking Signed-off-by: Schuyler Eldridge <schuyler.eldridge@ibm.com> Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> (cherry picked from commit bdac6e1)
Manually back-ported. * Link to Java API Documentation This adds a build.sbt apiMappings to allow for Scaladoc/Unidoc linking to Java API documentation. This uses the exact strategy that Scala upstream uses for linking. Signed-off-by: Schuyler Eldridge <schuyler.eldridge@ibm.com> * Add example of Java and Scala API docs linking Signed-off-by: Schuyler Eldridge <schuyler.eldridge@ibm.com> Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> (cherry picked from commit bdac6e1) Co-authored-by: Schuyler Eldridge <schuyler.eldridge@ibm.com>
This enables automatic Scaladoc linking to Java API docs using the same strategy that Scala upstream uses.
Linking to Scala API documentation already works.
Contributor Checklist
Type of Improvement
API Impact
None.
Backend Code Generation Impact
None.
Desired Merge Strategy
Reviewer Checklist (only modified by reviewer)
Please Merge
?