ZenScript main repository
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

build.gradle 613B

1234567891011121314151617181920
  1. import org.gradle.api.artifacts.*
  2. apply plugin: 'base' // To add "clean" task to the root project.
  3. subprojects {
  4. apply from: rootProject.file('common.gradle')
  5. }
  6. task mergedJavadoc(type: Javadoc, description: 'Creates Javadoc from all the projects.') {
  7. title = 'All modules'
  8. destinationDir = new File(project.buildDir, 'merged-javadoc')
  9. // Note: The closures below are executed lazily.
  10. source {
  11. subprojects*.sourceSets*.main*.allSource
  12. }
  13. classpath.from {
  14. subprojects*.configurations*.compile*.copyRecursive({ !(it instanceof ProjectDependency); })*.resolve()
  15. }
  16. }