From 29f072fc759fb70b069f5d4a96bbfb1bd1a4e686 Mon Sep 17 00:00:00 2001 From: Pascal Hartig Date: Mon, 14 Aug 2023 06:34:51 -0700 Subject: [PATCH] ACTUALLY disable dokka builds (#5005) Summary: This should hopefully unblock our Android builds for real this time. I didn't realise that the AGP itself seems to ship with a version of Dokka, so just removing the import didn't actually address the problem we were seeing. Pull Request resolved: https://github.com/facebook/flipper/pull/5005 Test Plan: ``` ./gradlew publishToMavenLocal -PRELEASE_SIGNING_ENABLED=false ``` This now succeeds. Reviewed By: jknoxville Differential Revision: D48312784 Pulled By: passy fbshipit-source-id: f049e089a511726857f544386fe13dcb50fb2971 --- android/plugins/jetpack-compose/build.gradle | 8 +------- build.gradle | 4 ++++ 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/android/plugins/jetpack-compose/build.gradle b/android/plugins/jetpack-compose/build.gradle index 2a095f13c..a4e323712 100644 --- a/android/plugins/jetpack-compose/build.gradle +++ b/android/plugins/jetpack-compose/build.gradle @@ -31,11 +31,5 @@ android { } } + apply plugin: 'com.vanniktech.maven.publish' - -import com.vanniktech.maven.publish.SonatypeHost -mavenPublishing { - // Disable javadoc publishing - publishToMavenCentral(SonatypeHost.DEFAULT, false) -} - diff --git a/build.gradle b/build.gradle index a9f474712..326d81a22 100644 --- a/build.gradle +++ b/build.gradle @@ -41,6 +41,10 @@ subprojects { tasks.withType(Javadoc).all { enabled = false } + + tasks.withType(com.android.build.gradle.tasks.JavaDocGenerationTask).all { + enabled = false + } } ext {