Skip to content

Commit 664596b

Browse files
authored
Merge pull request #179 from powersync-ja/fix-publishing
Disable dokka javadoc jars for publishing
2 parents deee4b1 + 34cb3ee commit 664596b

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

plugins/sonatype/src/main/kotlin/com/powersync/plugins/sonatype/SonatypeCentralUploadPlugin.kt

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@ package com.powersync.plugins.sonatype
33
import org.gradle.api.Plugin
44
import org.gradle.api.Project
55
import com.vanniktech.maven.publish.MavenPublishPlugin
6+
import com.vanniktech.maven.publish.KotlinMultiplatform
7+
import com.vanniktech.maven.publish.JavadocJar
8+
import com.vanniktech.maven.publish.MavenPublishBaseExtension
69

710
internal class SonatypeCentralUploadPlugin : Plugin<Project> {
811
override fun apply(project: Project) {
@@ -14,6 +17,14 @@ internal class SonatypeCentralUploadPlugin : Plugin<Project> {
1417
SonatypeCentralExtension::class.java,
1518
project
1619
)
20+
21+
// The publishing plugin would apply Dokka to upload docs by default, but we only really apply Dokka on the root
22+
// project, so this breaks the release flow.
23+
@Suppress("UnstableApiUsage")
24+
project.extensions.getByType(MavenPublishBaseExtension::class.java).configure(KotlinMultiplatform(
25+
javadocJar = JavadocJar.Empty(),
26+
))
27+
1728
extension.apply()
1829
}
1930
}

0 commit comments

Comments
 (0)