File tree Expand file tree Collapse file tree 2 files changed +5
-4
lines changed
build-support/src/main/kotlin/com/squareup/wire/buildsupport Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change 9
9
set -ex
10
10
11
11
# Generate the API docs
12
- ./gradlew dokkaHtml
12
+ ./gradlew dokkaHtmlPartial
13
13
14
14
# Copy in special files that GitHub wants in the project root.
15
15
cp CHANGELOG.md docs/changelog.md
Original file line number Diff line number Diff line change @@ -38,7 +38,7 @@ import org.gradle.api.tasks.testing.logging.TestLogEvent.SKIPPED
38
38
import org.gradle.kotlin.dsl.attributes
39
39
import org.gradle.kotlin.dsl.get
40
40
import org.gradle.kotlin.dsl.withType
41
- import org.jetbrains.dokka.gradle.DokkaTask
41
+ import org.jetbrains.dokka.gradle.DokkaTaskPartial
42
42
import org.jetbrains.kotlin.gradle.dsl.KotlinCompile
43
43
import org.jetbrains.kotlin.gradle.dsl.KotlinMultiplatformExtension
44
44
import org.jetbrains.kotlin.gradle.tasks.KotlinJvmCompile
@@ -357,7 +357,7 @@ private class WireBuildExtensionImpl(private val project: Project) : WireBuildEx
357
357
358
358
if (project.isWireBom) return
359
359
360
- project.tasks.withType(DokkaTask ::class .java) {
360
+ project.tasks.withType(DokkaTaskPartial ::class .java).configureEach {
361
361
outputDirectory.set(project.file(" ${project.rootDir} /docs/3.x/${project.name} " ))
362
362
dokkaSourceSets.configureEach {
363
363
reportUndocumented.set(false )
@@ -367,7 +367,8 @@ private class WireBuildExtensionImpl(private val project: Project) : WireBuildEx
367
367
matchingRegex.set(" com\\ .squareup\\ .wire.*\\ .internal.*" )
368
368
suppress.set(true )
369
369
}
370
- suppressGeneratedFiles.set(false ) // document generated code
370
+ // Document generated code.
371
+ suppressGeneratedFiles.set(false )
371
372
}
372
373
}
373
374
You can’t perform that action at this time.
0 commit comments