Skip to content

Commit

Permalink
Add dokkaJar to all artifacts
Browse files Browse the repository at this point in the history
  • Loading branch information
DRSchlaubi committed Jan 14, 2022
1 parent a44b427 commit bafe3e8
Show file tree
Hide file tree
Showing 9 changed files with 8 additions and 43 deletions.
37 changes: 0 additions & 37 deletions bom/build.gradle.kts

This file was deleted.

1 change: 1 addition & 0 deletions buildSrc/src/main/kotlin/lavalink-module.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
plugins {
kotlin("multiplatform")
id("org.jetbrains.dokka")
`maven-publish`
}

Expand Down
7 changes: 7 additions & 0 deletions buildSrc/src/main/kotlin/lavalink-publishing.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,12 @@ plugins {
signing
}

val dokkaJar by tasks.registering(Jar::class) {
dependsOn("dokkaHtml")
archiveClassifier.set("javadoc")
from(tasks.getByName("dokkaHtml"))
}

publishing {
repositories {
listOf(
Expand All @@ -21,6 +27,7 @@ publishing {

publications {
withType<MavenPublication> {
artifact(dokkaJar)
pom {
name.set(project.name)
description.set("Coroutine based client for Lavalink (Kotlin and Java)")
Expand Down
1 change: 0 additions & 1 deletion core/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ plugins {
`lavalink-module`
`lavalink-publishing`
kotlin("plugin.serialization")
id("org.jetbrains.dokka")
id("kotlinx-atomicfu")
}

Expand Down
1 change: 0 additions & 1 deletion java/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
plugins {
`lavalink-module`
`lavalink-publishing`
id("org.jetbrains.dokka")
}

kotlin {
Expand Down
1 change: 0 additions & 1 deletion jda-java/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
plugins {
`lavalink-module`
`lavalink-publishing`
id("org.jetbrains.dokka")
}

kotlin {
Expand Down
1 change: 0 additions & 1 deletion jda/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
plugins {
`lavalink-module`
`lavalink-publishing`
id("org.jetbrains.dokka")
}

repositories {
Expand Down
1 change: 0 additions & 1 deletion kord/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
plugins {
`lavalink-module`
`lavalink-publishing`
id("org.jetbrains.dokka")
}

kotlin {
Expand Down
1 change: 0 additions & 1 deletion settings.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ include("core")
include("java")
include("jda")
include("jda-java")
include("bom")

enableFeaturePreview("VERSION_CATALOGS")
enableFeaturePreview("TYPESAFE_PROJECT_ACCESSORS")
Expand Down

0 comments on commit bafe3e8

Please sign in to comment.