Android studio / Gradle javadoc task

后端 未结 3 885

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条回答
  •  慢半拍i
    慢半拍i (楼主)
    2021-01-01 19:48

    I use a gradle task that just executes a bash script file, with a single (pretty long) javadoc command.

    What you can do is run the Javadoc generation from Android Studio once, then copy the executed javadoc command from the Studio log, with all the right parameters, and automate the execution of the same command in your gradle.

提交回复
热议问题