Open durban opened 11 months ago
Scala version: 2.13.11 JDK version: 17.0.7 (OpenJDK) sbt version: 1.9.1
/** Example: [[java.util.concurrent.atomic.AtomicReference]]. */ class Example
build.sbt:
build.sbt
scalaVersion := "2.13.11" scalacOptions ++= Seq("-release", "11")
The generated API documentation (with sbt doc) contains an incorrect (dead) link to the AtomicReference apidoc. The incorrect link is https://docs.oracle.com/en/java/javase/17/docs/api/java/util/concurrent/atomic/AtomicReference.html (there is a java.base missing). Also note that the version is 17, regardless of the -release 11 setting.
sbt doc
AtomicReference
java.base
17
-release 11
Without the -release setting, the generated link is correct: https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/util/concurrent/atomic/AtomicReference.html.
-release
Originally I've opened an issue here, but it seems the problem is not sbt-plugin specific (probably not even sbt specific).
Reproduction steps
Scala version: 2.13.11 JDK version: 17.0.7 (OpenJDK) sbt version: 1.9.1
build.sbt
:Problem
The generated API documentation (with
sbt doc
) contains an incorrect (dead) link to theAtomicReference
apidoc. The incorrect link is https://docs.oracle.com/en/java/javase/17/docs/api/java/util/concurrent/atomic/AtomicReference.html (there is ajava.base
missing). Also note that the version is17
, regardless of the-release 11
setting.Without the
-release
setting, the generated link is correct: https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/util/concurrent/atomic/AtomicReference.html.Originally I've opened an issue here, but it seems the problem is not sbt-plugin specific (probably not even sbt specific).