Android studio / Gradle javadoc task

后端 未结 3 887

I\'ve been struggling to setup a gradle task to generate Javadocs for my Android library, but when there are external dependencies to other libraries, doc generation fails.

3条回答
  •  长发绾君心
    2021-01-01 19:52

    The tool to generate java style documentation is called javadoc and it comes installed in every JDK. You can configure which classes or packages you want to be included, which ones should be excluded and many other options. Type javadoc in a terminal where a JDK is available and you'll get an idea. See also https://docs.oracle.com/javase/9/javadoc/javadoc.htm#JSJAV-GUID-7A344353-3BBF-45C4-8B28-15025DDCC643

    After you get to your optimal configuration, you can include a javadoc step in your CI.

提交回复
热议问题