我在 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”并显示汇总文档。
提前致谢。