mirror of
https://github.com/AdrianKuta/Tree-Data-Structure.git
synced 2025-04-19 23:19:03 +02:00
Add javaDoc to release library
This commit is contained in:
parent
c306088ea3
commit
e34a85ac39
@ -1,8 +1,8 @@
|
|||||||
import org.jetbrains.kotlin.cli.common.toBooleanLenient
|
|
||||||
import org.jetbrains.kotlin.konan.properties.Properties
|
import org.jetbrains.kotlin.konan.properties.Properties
|
||||||
|
|
||||||
plugins {
|
plugins {
|
||||||
kotlin("multiplatform") version "1.7.20"
|
kotlin("multiplatform") version "1.7.20"
|
||||||
|
id("org.jetbrains.dokka") version "1.7.20"
|
||||||
id("maven-publish")
|
id("maven-publish")
|
||||||
signing
|
signing
|
||||||
}
|
}
|
||||||
@ -34,10 +34,19 @@ val snapshot: String? by project
|
|||||||
group = PUBLISH_GROUP_ID
|
group = PUBLISH_GROUP_ID
|
||||||
version = if (snapshot.toBoolean()) "$PUBLISH_VERSION-SNAPSHOT" else PUBLISH_VERSION
|
version = if (snapshot.toBoolean()) "$PUBLISH_VERSION-SNAPSHOT" else PUBLISH_VERSION
|
||||||
|
|
||||||
|
val dokkaHtml by tasks.getting(org.jetbrains.dokka.gradle.DokkaTask::class)
|
||||||
|
|
||||||
|
val javadocJar: TaskProvider<Jar> by tasks.registering(Jar::class) {
|
||||||
|
dependsOn(dokkaHtml)
|
||||||
|
archiveClassifier.set("javadoc")
|
||||||
|
from(dokkaHtml.outputDirectory)
|
||||||
|
}
|
||||||
|
|
||||||
publishing {
|
publishing {
|
||||||
publications {
|
publications {
|
||||||
|
|
||||||
withType<MavenPublication> {
|
withType<MavenPublication> {
|
||||||
|
artifact(javadocJar)
|
||||||
pom {
|
pom {
|
||||||
name.set("Tree Data Structure")
|
name.set("Tree Data Structure")
|
||||||
description.set("Simple implementation to store object in tree structure.")
|
description.set("Simple implementation to store object in tree structure.")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user