File tree Expand file tree Collapse file tree 5 files changed +19
-26
lines changed
build-logic/src/main/kotlin/kotlinx/io/conventions
integration/kotlinx-io-okio Expand file tree Collapse file tree 5 files changed +19
-26
lines changed Original file line number Diff line number Diff line change 1
1
/*
2
- * Copyright 2017-2024 JetBrains s.r.o. and respective authors and developers.
2
+ * Copyright 2017-2025 JetBrains s.r.o. and respective authors and developers.
3
3
* Use of this source code is governed by the Apache 2.0 license that can be found in the LICENCE file.
4
4
*/
5
5
6
- import org.jetbrains.dokka.gradle.*
7
- import java.net.URL
8
-
9
6
plugins {
10
7
id(" org.jetbrains.dokka" )
11
8
}
12
9
13
- // shared configuration for all dokka tasks (both partial and multi-module)
14
- tasks.withType<AbstractDokkaTask >().configureEach {
15
- pluginsMapConfiguration.set(
16
- mapOf (
17
- " org.jetbrains.dokka.base.DokkaBase" to """ { "templatesDir" : "${
18
- rootDir.resolve(" dokka-templates" )
19
- } " }"""
20
- )
21
- )
22
- }
23
-
24
- tasks.withType<DokkaTaskPartial >().configureEach {
10
+ dokka {
25
11
dokkaSourceSets.configureEach {
26
12
includes.from(" Module.md" )
27
13
28
14
sourceLink {
29
15
localDirectory = rootDir
30
- remoteUrl = URL (" https://github.com/kotlin/kotlinx-io/tree/master" )
16
+ remoteUrl(" https://github.com/kotlin/kotlinx-io/tree/master" )
31
17
remoteLineSuffix = " #L"
32
18
}
33
19
@@ -39,9 +25,10 @@ tasks.withType<DokkaTaskPartial>().configureEach {
39
25
40
26
// as in kotlinx-io-multiplatform.gradle.kts:configureSourceSet
41
27
val platform = name.dropLast(4 )
42
- samples.from(
43
- " common/test/samples" ,
44
- " $platform /test/samples"
45
- )
28
+ samples.from(" $platform /test/samples" )
29
+
30
+ }
31
+ pluginsConfiguration.html {
32
+ templatesDir = rootDir.resolve(" dokka-templates" )
46
33
}
47
34
}
Original file line number Diff line number Diff line change @@ -34,6 +34,10 @@ dependencies {
34
34
kover(project(" :kotlinx-io-core" ))
35
35
kover(project(" :kotlinx-io-bytestring" ))
36
36
kover(project(" :kotlinx-io-okio" ))
37
+
38
+ dokka(project(" :kotlinx-io-bytestring" ))
39
+ dokka(project(" :kotlinx-io-core" ))
40
+ dokka(project(" :kotlinx-io-okio" ))
37
41
}
38
42
39
43
kover {
Original file line number Diff line number Diff line change @@ -9,3 +9,5 @@ kotlin.code.style=official
9
9
org.gradle.jvmargs =-Xmx4G
10
10
nativeBenchmarksEnabled =true
11
11
kotlin.mpp.applyDefaultHierarchyTemplate =false
12
+ org.jetbrains.dokka.experimental.gradle.pluginMode =V2Enabled
13
+ org.jetbrains.dokka.experimental.gradle.pluginMode.nowarn =true
Original file line number Diff line number Diff line change 2
2
kotlin = " 2.1.0"
3
3
java = " 8"
4
4
multi-release-toolchain = " 17"
5
- dokka = " 1.9.20 "
5
+ dokka = " 2.0.0 "
6
6
kover = " 0.8.3"
7
7
bcv = " 0.16.3"
8
8
benchmark = " 0.4.13"
Original file line number Diff line number Diff line change @@ -41,11 +41,11 @@ kotlin {
41
41
}
42
42
}
43
43
44
- tasks.withType( DokkaTaskPartial :: class ) {
44
+ dokka {
45
45
dokkaSourceSets.configureEach {
46
- externalDocumentationLink {
47
- url = URL (" https://square.github.io/okio/3.x/okio/" )
48
- packageListUrl = URL (" https://square.github.io/okio/3.x/okio/okio/package-list" )
46
+ externalDocumentationLinks.register( " okio " ) {
47
+ url(" https://square.github.io/okio/3.x/okio/" )
48
+ packageListUrl(" https://square.github.io/okio/3.x/okio/okio/package-list" )
49
49
}
50
50
}
51
51
}
You can’t perform that action at this time.
0 commit comments