From da003a1a6a09d621f84e149ebc918eaeaa6f9068 Mon Sep 17 00:00:00 2001 From: "a.tabolin" Date: Mon, 2 Sep 2024 15:19:12 +0300 Subject: [PATCH] disable javadoc generation --- buildSrc/src/main/kotlin/convention-publish.gradle.kts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/buildSrc/src/main/kotlin/convention-publish.gradle.kts b/buildSrc/src/main/kotlin/convention-publish.gradle.kts index 2e409c29..ccdfdb42 100644 --- a/buildSrc/src/main/kotlin/convention-publish.gradle.kts +++ b/buildSrc/src/main/kotlin/convention-publish.gradle.kts @@ -1,4 +1,7 @@ import com.redmadrobot.build.dsl.* +import com.vanniktech.maven.publish.AndroidSingleVariantLibrary +import com.vanniktech.maven.publish.JavadocJar +import com.vanniktech.maven.publish.KotlinJvm import com.vanniktech.maven.publish.SonatypeHost plugins { @@ -8,6 +11,8 @@ plugins { mavenPublishing { publishToMavenCentral(SonatypeHost.CENTRAL_PORTAL, automaticRelease = true) signAllPublications() + // disable Javadoc because of Dokka / JDK 17: "PermittedSubclasses requires ASM9" during compilation + configure(AndroidSingleVariantLibrary(variant = "release", sourcesJar = true, publishJavadocJar = false,)) pom { name.convention(project.name)