@@ -65,34 +65,47 @@ dokka {
65
65
dependsOn {
66
66
tasks. getByName(" api" )
67
67
}
68
+
68
69
doFirst {
69
- classpath = moduleProjects. collect { project -> project. jar. outputs. files. getFiles() }. flatten()
70
- classpath + = files(moduleProjects. collect { it. sourceSets. main. compileClasspath })
71
- sourceDirs = files(moduleProjects
72
- .findAll {
73
- it. pluginManager. hasPlugin(" kotlin" )
70
+ configuration {
71
+ classpath = moduleProjects. collect { project -> project. jar. outputs. files. getFiles() }. flatten()
72
+ classpath + = files(moduleProjects. collect { it. sourceSets. main. compileClasspath })
73
+
74
+ moduleProjects. findAll {
75
+ it. pluginManager. hasPlugin(" kotlin" )
76
+ }. each { project ->
77
+ def kotlinDirs = project. sourceSets. main. kotlin. srcDirs. collect()
78
+ kotlinDirs - = project. sourceSets. main. java. srcDirs
79
+ kotlinDirs. each { dir ->
80
+ if (dir. exists()) {
81
+ sourceRoot {
82
+ path = dir. path
83
+ }
84
+ }
74
85
}
75
- .collect { project ->
76
- def kotlinDirs = project. sourceSets. main. kotlin. srcDirs. collect()
77
- kotlinDirs - = project. sourceSets. main. java. srcDirs
78
- })
86
+ }
87
+ }
79
88
}
80
- moduleName = " spring-framework "
89
+
81
90
outputFormat = " html"
82
91
outputDirectory = " $buildDir /docs/kdoc"
83
92
84
- externalDocumentationLink {
85
- url = new URL (" https://docs.spring.io/spring-framework/docs/$version /javadoc-api/" )
86
- packageListUrl = new File (buildDir, " docs/javadoc/package-list" ). toURI(). toURL()
87
- }
88
- externalDocumentationLink {
89
- url = new URL (" https://projectreactor.io/docs/core/release/api/" )
90
- }
91
- externalDocumentationLink {
92
- url = new URL (" https://www.reactive-streams.org/reactive-streams-1.0.1-javadoc/" )
93
- }
94
- externalDocumentationLink {
95
- url = new URL (" https://kotlin.github.io/kotlinx.coroutines/kotlinx-coroutines-core/" )
93
+ configuration {
94
+ moduleName = " spring-framework"
95
+
96
+ externalDocumentationLink {
97
+ url = new URL (" https://docs.spring.io/spring-framework/docs/$version /javadoc-api/" )
98
+ packageListUrl = new File (buildDir, " docs/javadoc/package-list" ). toURI(). toURL()
99
+ }
100
+ externalDocumentationLink {
101
+ url = new URL (" https://projectreactor.io/docs/core/release/api/" )
102
+ }
103
+ externalDocumentationLink {
104
+ url = new URL (" https://www.reactive-streams.org/reactive-streams-1.0.1-javadoc/" )
105
+ }
106
+ externalDocumentationLink {
107
+ url = new URL (" https://kotlin.github.io/kotlinx.coroutines/kotlinx-coroutines-core/" )
108
+ }
96
109
}
97
110
}
98
111
0 commit comments