-
Notifications
You must be signed in to change notification settings - Fork 395
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
Unable to turn off fetching the packageListUrl from network #1764
Comments
Followup: I can't find this from anywhere in the documentation, but if I add
then Dokka works offline perfectly. So the full task in reference to the one in the initial post:
|
If this is the expected behaviour then could you please document this somewhere in the Gradle plugin documentation? Currently, the offline mode is only mentioned on the CLI config. |
That's strange actually. Are you sure this configuration is executed and you have no other source sets that Dokka might document? Turning off those links and adding a local one should be enough, |
This is a related (not the same) issue |
Currently, this is documented. // Used to prevent resolving package-lists online. When this option is set to true, only local files are resolved
offlineMode.set(false) |
Describe the bug
I have an Android library project with dokka plugin "org.jetbrains.dokka:dokka-gradle-plugin:1.4.20" and two separate tasks - one for library source and one for library source + tests.
I have a requirement that the project must be able to compile offline. For this we have a setup of a local maven repository that contains all the build script and compile dependencies. Also the ones that are needed for Dokka.
Everything else runs offline. But the dokka task every time fails with
I understand that this is because it tries to fetch the packageListUrl from online.
In order to avoid it I downloaded the package-list and added it locally:
But this does not solve my issue, the build continues to fail.
What am I doing wrong?
Expected behaviour
Dokka is able to generate documentation without connecting to developer.android.com
To Reproduce
Dokka configuration
Installation
The text was updated successfully, but these errors were encountered: