File tree Expand file tree Collapse file tree 3 files changed +13
-29
lines changed
build-logic/src/main/kotlin/kotlinx/io/conventions Expand file tree Collapse file tree 3 files changed +13
-29
lines changed Original file line number Diff line number Diff line change @@ -19,5 +19,18 @@ tasks.withType<DokkaTaskPartial>().configureEach {
19
19
remoteUrl.set(URL (" https://github.com/kotlin/kotlinx-io/tree/master" ))
20
20
remoteLineSuffix.set(" #L" )
21
21
}
22
+
23
+ // we don't want to advertise `unsafe` APIs in documentation
24
+ perPackageOption {
25
+ suppress.set(true )
26
+ matchingRegex.set(" .*unsafe.*" )
27
+ }
28
+
29
+ // as in kotlinx-io-multiplatform.gradle.kts:configureSourceSet
30
+ val platform = name.dropLast(4 )
31
+ samples.from(
32
+ " common/test/samples" ,
33
+ " $platform /test/samples"
34
+ )
22
35
}
23
36
}
Original file line number Diff line number Diff line change 1
- import org.jetbrains.dokka.gradle.DokkaTaskPartial
2
-
3
1
plugins {
4
2
id(" kotlinx-io-multiplatform" )
5
3
id(" kotlinx-io-publish" )
@@ -26,15 +24,3 @@ kotlin {
26
24
}
27
25
}
28
26
}
29
-
30
-
31
- tasks.withType<DokkaTaskPartial >().configureEach {
32
- dokkaSourceSets.configureEach {
33
- perPackageOption {
34
- suppress.set(true )
35
- matchingRegex.set(" .*unsafe.*" )
36
- }
37
-
38
- samples.from(" common/test/samples/samples.kt" )
39
- }
40
- }
Original file line number Diff line number Diff line change 4
4
*/
5
5
6
6
import org.gradle.internal.os.OperatingSystem
7
- import org.jetbrains.dokka.gradle.DokkaTaskPartial
8
7
9
8
plugins {
10
9
id(" kotlinx-io-multiplatform" )
@@ -53,20 +52,6 @@ kotlin {
53
52
}
54
53
}
55
54
56
- tasks.withType<DokkaTaskPartial >().configureEach {
57
- dokkaSourceSets.configureEach {
58
- samples.from(
59
- " common/test/samples/rawSinkSample.kt" ,
60
- " common/test/samples/rawSourceSample.kt" ,
61
- " common/test/samples/moduleDescriptionSample.kt" ,
62
- " common/test/samples/samples.kt" ,
63
- " common/test/samples/byteStringSample.kt" ,
64
- " jvm/test/samples/samplesJvm.kt" ,
65
- " apple/test/samples/samplesApple.kt"
66
- )
67
- }
68
- }
69
-
70
55
tasks.named(" wasmWasiNodeTest" ) {
71
56
// TODO: remove once https://youtrack.jetbrains.com/issue/KT-65179 solved
72
57
doFirst {
You can’t perform that action at this time.
0 commit comments