Skip to content

Commit

Permalink
Fix :ReactAndroid:androidJavadoc task (#30417)
Browse files Browse the repository at this point in the history
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
  • Loading branch information
NickGerleman authored and alloy committed Nov 18, 2020
1 parent 68110d4 commit 9f49f8a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ReactAndroid/release.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -73,12 +73,12 @@ if (JavaVersion.current().isJava8Compatible()) {

afterEvaluate { project ->

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

task androidJavadocJar(type: Jar, dependsOn: androidJavadoc) {
Expand Down

0 comments on commit 9f49f8a

Please sign in to comment.