7mind / izumi

Productivity-oriented collection of lightweight fancy stuff for Scala toolchain
https://izumi.7mind.io
BSD 2-Clause "Simplified" License
615 stars 66 forks source link

unidoc plugin breaks on typesafe-config usage #362

Closed pshirshov closed 6 years ago

pshirshov commented 6 years ago
[error] /work/izumi-r2/distage/distage-roles/src/main/scala/com/github/pshirshov/izumi/distage/roles/impl/ScoptRoleApp.scala:28:61: value defaultApplication is not a member of object com.typesafe.config.ConfigFactory
[error]     val commonConfig = params.configFile.fold(ConfigFactory.defaultApplication())(ConfigFactory.parseFile)
[error]

Reproduces in docker only (???). Looks like a dependency convergence issue.

pshirshov commented 6 years ago

Fixed by excluding sbt projects to prevent classpath clashes.

Unidoc is collecting all the sources and all the classpath elements then invokes compiler. This is a very dangerous behavior.