Skip to content

Commit 9f49f8a

Browse files
NickGerlemanalloy
authored andcommitted
Fix :ReactAndroid:androidJavadoc task (#30417)
Summary: Fixes #30415 This is a quick and dirty fix to unblock publish, of excluding a class from Javadoc generation that is importing a class current build logic cannot handle. This is not a long-term fix for the issue. ## Changelog <!-- Help reviewers and the release process by writing your own changelog entry. For an example, see: https://github.com/facebook/react-native/wiki/Changelog --> [Internal] [Fixed] - Fix :ReactAndroid:androidJavadoc task Pull Request resolved: #30417 Test Plan: Tested that the task now completes locally. Reviewed By: lunaleaps Differential Revision: D25041282 Pulled By: fkgozali fbshipit-source-id: f774ab30a09db473178e2a51c77860e4985dd8e3
1 parent 68110d4 commit 9f49f8a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ReactAndroid/release.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,12 +73,12 @@ if (JavaVersion.current().isJava8Compatible()) {
7373

7474
afterEvaluate { project ->
7575

76-
task androidJavadoc(type: Javadoc) {
76+
task androidJavadoc(type: Javadoc, dependsOn: generateReleaseBuildConfig) {
7777
source = android.sourceSets.main.java.srcDirs
7878
classpath += files(android.bootClasspath)
7979
classpath += files(project.getConfigurations().getByName("compile").asList())
80+
classpath += files("$buildDir/generated/source/buildConfig/release")
8081
include("**/*.java")
81-
exclude("**/ReactBuildConfig.java")
8282
}
8383

8484
task androidJavadocJar(type: Jar, dependsOn: androidJavadoc) {

0 commit comments

Comments
 (0)