Skip to content
Discussion options

You must be logged in to vote

AFAIK, there is currently no way to include Javadoc in Scaladoc. (We also have this issue in Mill itself, #5927) There exists a tool genjavadoc that can generate Javadoc from Scala files, but it might be limited.

If you're only interested in the Javadoc, you can override the docJar task to either:

  1. just return the super[JavaModule].docJar() result or

  2. implement it by packaging the result of javadocGenerated task into a jar. Basically copy and paste these lines:

    def docJar: T[PathRef] = Task[PathRef] {
    PathRef(Jvm.createJar(Task.dest / "out.jar", Seq(javadocGenerated().path)))
    }

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@charpov
Comment options

Answer selected by charpov
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants