浏览代码

build.gradle: fix for issue #1370 (test classes added to merged javadoc)

Stephen Gold 4 年之前
父节点
当前提交
e1dc2f6fa6
共有 1 个文件被更改,包括 1 次插入4 次删除
  1. 1 4
      build.gradle

+ 1 - 4
build.gradle

@@ -137,13 +137,10 @@ task mergedJavadoc(type: Javadoc, description: 'Creates Javadoc from all the pro
     options.overview = file("javadoc-overview.html")
     options.overview = file("javadoc-overview.html")
     // Note: The closures below are executed lazily.
     // Note: The closures below are executed lazily.
     source subprojects.collect {project ->
     source subprojects.collect {project ->
-        project.sourceSets*.allJava
+        project.sourceSets.main.allJava // main only, exclude tests
     }
     }
     classpath = files(subprojects.collect {project ->
     classpath = files(subprojects.collect {project ->
             project.sourceSets*.compileClasspath})
             project.sourceSets*.compileClasspath})
-    //    source {
-    //        subprojects*.sourceSets*.main*.allSource
-    //    }
     classpath.from {
     classpath.from {
         subprojects*.configurations*.compile*.copyRecursive({ !(it instanceof ProjectDependency); })*.resolve()
         subprojects*.configurations*.compile*.copyRecursive({ !(it instanceof ProjectDependency); })*.resolve()
     }
     }