|
3 | 3 | */ |
4 | 4 |
|
5 | 5 | import org.jetbrains.kotlin.gradle.plugin.getKotlinPluginVersion |
6 | | -import util.asDokkaVersion |
7 | | -import util.configureNpm |
8 | | -import util.configureProjectReport |
9 | | -import util.registerDumpPlatformTableTask |
10 | | -import util.registerChangelogTask |
11 | | -import util.libs |
12 | | -import util.registerVerifyPlatformTableTask |
13 | | -import java.time.Year |
14 | 6 |
|
15 | 7 | plugins { |
16 | 8 | alias(libs.plugins.serialization) apply false |
17 | 9 | alias(libs.plugins.kotlinx.rpc) apply false |
| 10 | + alias(libs.plugins.atomicfu) apply false |
18 | 11 | alias(libs.plugins.conventions.kover) |
19 | 12 | alias(libs.plugins.conventions.gradle.doctor) |
20 | | - alias(libs.plugins.dokka) |
21 | | - alias(libs.plugins.atomicfu) |
22 | | - id("build-util") |
| 13 | + alias(libs.plugins.conventions.root) |
23 | 14 | } |
24 | 15 |
|
25 | | -dokka { |
26 | | - val libDokkaVersion = libs.versions.kotlinx.rpc.get().asDokkaVersion() |
27 | | - |
28 | | - moduleVersion.set(libDokkaVersion) |
29 | | - |
30 | | - val pagesDirectory = layout.projectDirectory |
31 | | - .dir("docs") |
32 | | - .dir("pages") |
33 | | - |
34 | | - val dokkaVersionsDirectory = pagesDirectory |
35 | | - .dir("api") |
36 | | - .asFile |
37 | | - |
38 | | - val templatesDirectory = pagesDirectory |
39 | | - .dir("templates") |
40 | | - |
41 | | - pluginsConfiguration { |
42 | | - html { |
43 | | - customAssets.from( |
44 | | - "docs/pages/assets/logo-icon.svg", |
45 | | - "docs/pages/assets/homepage.svg", // Doesn't work due to https://github.com/Kotlin/dokka/issues/4007 |
46 | | - ) |
47 | | - |
48 | | - footerMessage = "© ${Year.now()} JetBrains s.r.o and contributors. Apache License 2.0" |
49 | | - homepageLink = "https://kotlin.github.io/kotlinx-rpc/get-started.html" |
50 | | - |
51 | | - // replace with homepage.svg once the mentioned issue is resolved |
52 | | - templatesDir.set(templatesDirectory) |
53 | | - } |
54 | | - |
55 | | - // enable versioning for stable |
56 | | -// versioning { |
57 | | -// version = libDokkaVersion |
58 | | -// olderVersionsDir = dokkaVersionsDirectory |
59 | | -// } |
60 | | - } |
61 | | - |
62 | | - dokkaPublications.html { |
63 | | - outputDirectory = dokkaVersionsDirectory |
64 | | - } |
65 | | - |
66 | | - tasks.clean { |
67 | | - delete(dokkaVersionsDirectory) |
68 | | - } |
69 | | - |
70 | | - dokkaGeneratorIsolation = ProcessIsolation { |
71 | | - // Configures heap size, use if start to fail with OOM on CI |
72 | | -// maxHeapSize = "4g" |
73 | | - } |
74 | | -} |
75 | | - |
76 | | -dependencies { |
77 | | - dokkaPlugin(libs.dokka.rpc.plugin) |
78 | | -} |
79 | | - |
80 | | -configureProjectReport() |
81 | | -configureNpm() |
82 | | - |
83 | | -registerDumpPlatformTableTask() |
84 | | -registerVerifyPlatformTableTask() |
85 | | -registerChangelogTask() |
86 | | - |
87 | 16 | val kotlinVersion = rootProject.libs.versions.kotlin.lang.get() |
88 | 17 | val kotlinCompiler = rootProject.libs.versions.kotlin.compiler.get() |
89 | 18 |
|
|
0 commit comments