From f8362a34e1c6911115e183e70992604cf2b656e2 Mon Sep 17 00:00:00 2001 From: Danilo Pianini Date: Mon, 5 Dec 2022 12:48:43 +0100 Subject: [PATCH] fix(build): add missing configuration for publish-on-central plugin (#1750) --- build.gradle.kts | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/build.gradle.kts b/build.gradle.kts index 7ff9597e2c..d894da6f6a 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -134,6 +134,15 @@ allprojects { dependsOn(dokka) from(dokka.outputDirectory) } + publishing { + publications { + publications.withType().configureEach { + if ("OSSRH" !in name) { + artifact(tasks.javadocJar) + } + } + } + } } // COMPILE