Skip to content

Commit

Permalink
an attempt to fix publishing
Browse files Browse the repository at this point in the history
  • Loading branch information
morisil committed Sep 30, 2024
1 parent 0d59abf commit d91effd
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -121,14 +121,14 @@ powerAssert {
includedSourceSets = listOf("commonTest", "jvmTest", "nativeTest")
}

val javadocJar by tasks.register<Jar>("dokkaHtmlJar") {
group = "documentation"
dependsOn(tasks.dokkaHtml)
from(tasks.dokkaHtml.flatMap { it.outputDirectory })
archiveClassifier.set("javadoc")
}

val sourcesJar by tasks.named("sourcesJar")
//val javadocJar by tasks.register<Jar>("dokkaHtmlJar") {
// group = "documentation"
// dependsOn(tasks.dokkaHtml)
// from(tasks.dokkaHtml.flatMap { it.outputDirectory })
// archiveClassifier.set("javadoc")
//}
//
//val sourcesJar by tasks.named("sourcesJar")

publishing {
repositories {
Expand All @@ -144,10 +144,10 @@ publishing {
}
}
publications {
create<MavenPublication>("maven") {
from(components["kotlin"])
artifact(javadocJar)
artifact(sourcesJar)
withType<MavenPublication> {
// from(components["kotlin"])
// artifact(javadocJar)
// artifact(sourcesJar)
pom {
name = "anthropic-sdk-kotlin"
description = "Kotlin multiplatform client for accessing Ahtropic APIs"
Expand Down

0 comments on commit d91effd

Please sign in to comment.