Skip to content

Commit 05e6ce9

Browse files
committed
fix dokka, spek plugin configuration
1 parent 24e5f33 commit 05e6ce9

File tree

1 file changed

+15
-8
lines changed

1 file changed

+15
-8
lines changed

build.gradle

Lines changed: 15 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ buildscript {
55
ext.moshi_version = '1.8.0'
66
ext.json_version = '20190722'
77
ext.google_http_client_version = '1.32.1'
8-
ext.spek_verson = '2.0.8'
8+
ext.spek_version = '2.0.8'
99

1010
repositories { jcenter() }
1111

@@ -51,6 +51,7 @@ dependencies {
5151
testCompile("org.spekframework.spek2:spek-dsl-jvm:$spek_version") {
5252
exclude group: 'org.jetbrains.kotlin'
5353
}
54+
5455
testRuntimeOnly("org.spekframework.spek2:spek-runner-junit5:$spek_version") {
5556
exclude group: 'org.junit.platform'
5657
exclude group: 'org.jetbrains.kotlin'
@@ -65,14 +66,20 @@ dokka {
6566
outputFormat = 'javadoc'
6667
outputDirectory = 'docs'
6768

68-
jdkVersion = 8
69-
includeNonPublic = false
70-
impliedPlatforms = ["JVM"]
69+
configuration {
70+
jdkVersion = 8
71+
includeNonPublic = false
72+
impliedPlatforms = ["JVM"]
73+
74+
sourceLink {
75+
path = "src/main/kotlin"
76+
url = "https://github.com/adamint/spotify-web-api-kotlin/tree/master/src/main/kotlin"
77+
lineSuffix = "#L"
78+
}
7179

72-
linkMapping {
73-
dir = "src/main/kotlin"
74-
url = "https://github.com/adamint/spotify-web-api-kotlin/tree/master/src/main/kotlin"
75-
suffix = "#L"
80+
externalDocumentationLink {
81+
url = new URL("https://adamint.github.io/spotify-web-api-kotlin/")
82+
}
7683
}
7784
}
7885

0 commit comments

Comments
 (0)