sbt-unidoc icon indicating copy to clipboard operation
sbt-unidoc copied to clipboard

Configuration names are different between compile and runtime

Open 2m opened this issue 6 years ago • 2 comments

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.

2m avatar Mar 04 '19 13:03 2m

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")

eed3si9n avatar Mar 17 '19 00:03 eed3si9n

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]]
...

2m avatar Mar 18 '19 16:03 2m