Skip to content

Commit

Permalink
docs: publish dokka javadoc (#53)
Browse files Browse the repository at this point in the history
  • Loading branch information
stainless-app[bot] authored and stainless-bot committed Jan 13, 2025
1 parent 5c2320d commit 8bd0316
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 1 deletion.
14 changes: 14 additions & 0 deletions build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,4 +1,18 @@
plugins {
id("org.jetbrains.dokka") version "2.0.0"
}

allprojects {
group = "com.anthropic"
version = "0.1.0-alpha.6" // x-release-please-version
}

subprojects {
apply(plugin = "org.jetbrains.dokka")
}

tasks.register<Jar>("dokkaJavadocJar") {
dependsOn(tasks.dokkaJavadoc)
from(tasks.dokkaJavadoc.flatMap { it.outputDirectory })
archiveClassifier.set("javadoc")
}
10 changes: 9 additions & 1 deletion buildSrc/src/main/kotlin/anthropic.publish.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import com.vanniktech.maven.publish.JavadocJar
import com.vanniktech.maven.publish.KotlinJvm
import com.vanniktech.maven.publish.MavenPublishBaseExtension
import com.vanniktech.maven.publish.SonatypeHost

Expand All @@ -18,7 +20,13 @@ configure<MavenPublishBaseExtension> {
signAllPublications()
publishToMavenCentral(SonatypeHost.CENTRAL_PORTAL)

this.coordinates(project.group.toString(), project.name, project.version.toString())
coordinates(project.group.toString(), project.name, project.version.toString())
configure(
KotlinJvm(
javadocJar = JavadocJar.Dokka("dokkaJavadoc"),
sourcesJar = true,
)
)

pom {
name.set("Anthropic API")
Expand Down

0 comments on commit 8bd0316

Please sign in to comment.