File tree 1 file changed +8
-0
lines changed
1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -4,6 +4,7 @@ plugins {
4
4
kotlin(" jvm" )
5
5
`maven- publish`
6
6
id(" com.jfrog.bintray" ) version " 1.8.5"
7
+ id(" org.jetbrains.dokka" ) version " 1.4.0-rc"
7
8
}
8
9
9
10
dependencies {
@@ -46,6 +47,12 @@ val sourcesJar by tasks.creating(Jar::class) {
46
47
}
47
48
}
48
49
50
+ val dokkaJavadocJar by tasks.creating(Jar ::class ) {
51
+ dependsOn(tasks.dokkaJavadoc)
52
+ from(tasks.dokkaJavadoc.get().getOutputDirectoryAsFile())
53
+ archiveClassifier.set(" javadoc" )
54
+ }
55
+
49
56
val artifactName = rootProject.name
50
57
val artifactGroup = project.group.toString()
51
58
val artifactVersion = project.version.toString()
@@ -74,6 +81,7 @@ publishing {
74
81
version = artifactVersion
75
82
from(components[" java" ])
76
83
artifact(sourcesJar)
84
+ artifact(dokkaJavadocJar) // TODO configure dokka or use defaults?
77
85
78
86
pom {
79
87
packaging = " jar"
You can’t perform that action at this time.
0 commit comments