File tree Expand file tree Collapse file tree 1 file changed +11
-0
lines changed
plugins/sonatype/src/main/kotlin/com/powersync/plugins/sonatype Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -3,6 +3,9 @@ package com.powersync.plugins.sonatype
33import org.gradle.api.Plugin
44import org.gradle.api.Project
55import 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
710internal 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}
You can’t perform that action at this time.
0 commit comments