New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Javadoc destination directory being deleted #8407
Comments
It turns out that starting with Gradle 5, the Javadoc plugin is deleting the destination directory before executing.. There doesn't seem to be a way to disable that. Is there a reason for this behavior change? |
That was changed per #6168. |
It doesn't look like there's a way to disable the cleaning of the directory or to inject some task that runs after the clean. Perhaps either could be added? I'm a little surprised that #6168 was implemented instead of just suggesting adding a doFirst() to the task declaration. |
This is intentional behavior for the reasons in #6168. The Javadoc task should just work out-of-the-box, so asking users to add a Could you get by with something like:
|
One of our projects uses an external SDK and we want to have our Javadocs include the classes from that external project. We copy the javadocs into a subdirectory of $buildDir/javadocs and link to them as follows:
Starting with Gradle 5 and verified with 5.1.1 and 5.2, we get the following warning while building:
javadoc: warning - Error reading file: c:\MyProject\build\javadocs\someOtherProject\package-list
...and the links to the javadocs in /someOtherProject no longer work.
I thought it might be related to Issue #8183 but since has been fixed, perhaps not.
The text was updated successfully, but these errors were encountered: