File tree 1 file changed +10
-2
lines changed
1 file changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ plugins {
3
3
id(" com.gradle.plugin-publish" ) version " 0.15.0"
4
4
id(" org.jetbrains.gradle.plugin.idea-ext" ) version " 1.0"
5
5
kotlin(" jvm" ) version " 1.5.31"
6
+ id(" org.jetbrains.dokka" ) version " 1.5.30"
6
7
}
7
8
8
9
repositories {
@@ -139,13 +140,19 @@ gradlePlugin {
139
140
// TODO #171 remove once all groovy classes are migrated to kotlin
140
141
val groovydocJar by tasks.registering(Jar ::class ) {
141
142
from(" $buildDir /docs/groovydoc" )
142
- classifier = " groovydoc"
143
+ archiveClassifier.set( " groovydoc" )
143
144
dependsOn(tasks[" groovydoc" ])
144
145
}
145
146
147
+ val kotlindocJar by tasks.registering(Jar ::class ) {
148
+ from(tasks.dokkaHtml.get().outputDirectory)
149
+ archiveClassifier.set(" kotlindoc" )
150
+ dependsOn(tasks.dokkaHtml)
151
+ }
152
+
146
153
val sourcesJar by tasks.registering(Jar ::class ) {
147
154
from(sourceSets[" main" ].allSource)
148
- classifier = " sources"
155
+ archiveClassifier.set( " sources" )
149
156
}
150
157
151
158
fun propOrDefault (property : String ): String {
@@ -203,6 +210,7 @@ configure<PublishingExtension> {
203
210
}
204
211
from(components[" java" ])
205
212
artifact(groovydocJar)
213
+ artifact(kotlindocJar)
206
214
artifact(sourcesJar)
207
215
}
208
216
}
You can’t perform that action at this time.
0 commit comments