我们已将 Java 项目升级到 JDK 10。运行构建脚本时,Javadoc 会输出警告:
javadoc: warning - You have not specified the version of HTML to use.
The default is currently HTML 4.01, but this will change to HTML5
in a future release. To suppress this warning, please specify the
version of HTML used in your documentation comments and to be
generated by this doclet, using the -html4 or -html5 options.
为了构建项目,我们使用gradle。我们如何-html5
在 gradle 中指定 HTML 5 ( )?
到目前为止,我们文件的javadoc部分build.gradle
相当简单:
javadoc {
include 'com/company/project/pkg/*'
}