我在Gradle中有一个多模块scala项目。除了ScalaDoc之外,一切都很好用。我想生成一个单独的'uber-scaladoc'与所有库交叉链接。我对groovy / gradle还很新,所以这可能是一个'我'的问题。任何获得此设置的帮助都将不胜感激。
build.gradle (in the root directory)
// ...
task doScaladoc(type: ScalaDoc) {
subprojects.each { p ->
// do something here? include the project's src/main/scala/*?
// it looks like I would want to call 'include' in here to include each project's
// source directory, but I'm not familiar enough with the Project type to get at
// that info.
//
// http://www.gradle.org/docs/current/dsl/org.gradle.api.tasks.scala.ScalaDoc.html
}
}
此处的目标是能够在命令行运行'gradle doScalaDoc'并显示聚合文档。
提前致谢。