Skip to content

Commit

Permalink
Publish javadocs with core lib
Browse files Browse the repository at this point in the history
  • Loading branch information
serpro69 committed Aug 22, 2020
1 parent e71e15f commit cc1d62f
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions core/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ plugins {
kotlin("jvm")
`maven-publish`
id("com.jfrog.bintray") version "1.8.5"
id("org.jetbrains.dokka") version "1.4.0-rc"
}

dependencies {
Expand Down Expand Up @@ -46,6 +47,12 @@ val sourcesJar by tasks.creating(Jar::class) {
}
}

val dokkaJavadocJar by tasks.creating(Jar::class) {
dependsOn(tasks.dokkaJavadoc)
from(tasks.dokkaJavadoc.get().getOutputDirectoryAsFile())
archiveClassifier.set("javadoc")
}

val artifactName = rootProject.name
val artifactGroup = project.group.toString()
val artifactVersion = project.version.toString()
Expand Down Expand Up @@ -74,6 +81,7 @@ publishing {
version = artifactVersion
from(components["java"])
artifact(sourcesJar)
artifact(dokkaJavadocJar) //TODO configure dokka or use defaults?

pom {
packaging = "jar"
Expand Down

0 comments on commit cc1d62f

Please sign in to comment.