I'm using sbt 0.11.2 for a mixed Java/Scala project. I've realized that when I run the doc
command from within sbt, it does not only create the scaladocs for the Scala source files in src/main/scala
, but also for the Java source files in src/main/java
(the sbt wiki claims to create them for src/main/scala
only that seems not true).
However, this does not look very well. For instance, for a Java class named Foo
with static methods there are two entries in the generated scaladoc: a Foo
class and a Foo
object. The class only lists the constructor and the object lists the static methods.
Is there any way I can tell sbt to exclude the src/main/java
folder from the scaladoc generation? I want to create javadocs for those instead.
build.sbt
solves the problem. Unfortunately, SBT's documentation is quite superficial in explaining each feature and configuring advanced settings like this one is not for Scala beginners like me. Hopefully, more attention will be paid to the entire documentation aspect of Scala and its libraries. – Peritonitis