Skip to content

Commit 4c832e7

Browse files
committed
add dokka
1 parent 6a35b41 commit 4c832e7

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

build.gradle.kts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ plugins {
88
kotlin("plugin.serialization") version "1.3.50"
99
id("com.diffplug.gradle.spotless") version "3.25.0"
1010
id("com.moowork.node") version "1.3.1"
11+
id("org.jetbrains.dokka") version "0.10.0"
1112
}
1213

1314
group = "com.adamratzman"
@@ -108,6 +109,8 @@ tasks.named<Test>("jvmTest") {
108109
useJUnitPlatform()
109110
}
110111

112+
113+
111114
spotless {
112115
kotlin {
113116
target("**/*.kt")
@@ -197,3 +200,10 @@ gradle.taskGraph.whenReady {
197200
console.printf("\nThanks.\n\n")
198201
}
199202
}
203+
204+
tasks {
205+
val dokka by getting(DokkaTask::class) {
206+
outputFormat = "html"
207+
outputDirectory = "/docs"
208+
}
209+
}

settings.gradle

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,3 +23,4 @@ pluginManagement {
2323
enableFeaturePreview('GRADLE_METADATA')
2424

2525
rootProject.name = 'spotify-web-api-kotlin'
26+

0 commit comments

Comments
 (0)