|
1 | | -import java.net.URL |
2 | | -import org.gradle.internal.os.OperatingSystem |
3 | 1 | import org.jetbrains.kotlin.gradle.ExperimentalKotlinGradlePluginApi |
4 | 2 |
|
5 | | -val os: OperatingSystem = OperatingSystem.current() |
6 | | - |
7 | 3 | plugins { |
8 | 4 | `maven-publish` |
9 | 5 | signing |
@@ -106,34 +102,33 @@ android { |
106 | 102 | } |
107 | 103 | } |
108 | 104 |
|
109 | | -tasks.dokkaHtmlPartial { |
110 | | - moduleName.set("KBigInt Serialization") |
111 | | - suppressInheritedMembers.set(false) |
112 | | - pluginsMapConfiguration.set( |
113 | | - mapOf( |
114 | | - "org.jetbrains.dokka.base.DokkaBase" to |
115 | | - """{"footerMessage": "(c) 2025 ObserverOfTime"}""" |
116 | | - ) |
117 | | - ) |
118 | | - dokkaSourceSets.configureEach { |
119 | | - jdkVersion.set(17) |
120 | | - includes.from(file("README.md")) |
121 | | - externalDocumentationLink { |
122 | | - url.set(URL("https://kotlinlang.org/api/kotlinx.serialization/")) |
123 | | - } |
124 | | - } |
125 | | -} |
126 | | - |
127 | 105 | tasks.withType<AbstractPublishToMaven>().configureEach { |
128 | 106 | mustRunAfter(tasks.withType<Sign>()) |
129 | 107 | } |
130 | 108 |
|
131 | | -tasks.create<Jar>("javadocJar") { |
| 109 | +tasks.register<Jar>("javadocJar") { |
132 | 110 | group = "documentation" |
133 | 111 | archiveClassifier.set("javadoc") |
134 | 112 | from(files("README.md")) |
135 | 113 | } |
136 | 114 |
|
| 115 | +dokka { |
| 116 | + moduleName.set("KBigInt Serialization") |
| 117 | + pluginsConfiguration.html { |
| 118 | + footerMessage.set("(c) 2024-2025 ObserverOfTime") |
| 119 | + } |
| 120 | + dokkaSourceSets.configureEach { |
| 121 | + jdkVersion.set(17) |
| 122 | + includes.from(file("README.md")) |
| 123 | + externalDocumentationLinks.register("kotlinx.serialization") { |
| 124 | + url("https://kotlinlang.org/api/kotlinx.serialization/") |
| 125 | + } |
| 126 | + } |
| 127 | + dokkaPublications.configureEach { |
| 128 | + suppressInheritedMembers.set(false) |
| 129 | + } |
| 130 | +} |
| 131 | + |
137 | 132 | publishing { |
138 | 133 | publications.withType(MavenPublication::class) { |
139 | 134 | artifact(tasks["javadocJar"]) |
|
0 commit comments