sbt-unidoc
sbt-unidoc copied to clipboard
Configuration names are different between compile and runtime
For example here:
https://github.com/sbt/sbt-unidoc/blob/641198c6d1416fffc7ac976a0b6aff0f2becfa62/src/main/scala/sbtunidoc/ScalaUnidocPlugin.scala#L12-L13
Both should use the same capitalization.
Because Ivy Configuration (Maven scope) names are lower cased by convention, I think this is ok. See for example https://github.com/sbt/librarymanagement/blob/v1.2.4/core/src/main/scala/sbt/librarymanagement/ConfigurationExtra.scala#L41
lazy val Compile = Configuration.of("Compile", "compile")
Thanks for looking into this. I might have linked to the wrong part of the source code. I had in mind the following discrepancy: in Alpakka here is how we modify scaladoc classpath:
ScalaUnidoc / unidoc / fullClasspath := { ...
https://github.com/akka/alpakka/blob/b860c64512f425b420f455dc30f6bfafd756eb82/build.sbt#L71
But to inspect the value in the sbt console, one needs to use configuration name with lower u:
sbt:alpakka> inspect Scalaunidoc / unidoc / fullClasspath
[info] Task: scala.collection.Seq[sbt.internal.util.Attributed[java.io.File]]
...