0

I'm trying to get this build to pass on Travis, but Gradle runs out of memory when running the ./gradlew :chronolens-test:dokkaJavadoc task.

When I run the task locally, it passes. I tried increasing the Gradle memory (e.g., in in this commit), but to no avail. According to Travis documentation, I believe the environment I configured should have at least 7 GB of RAM, so Gradle using up to 2-3 GB shouldn't be an issue (especially since it passes locally with the same RAM settings).

I'm not sure what I'm doing wrong. Any ideas on how I can make the build green?

Thanks!

  • 1
    This seems to be a known issue of dokka itself: https://github.com/Kotlin/dokka/issues/1405 – Cisco Jan 10 '21 at 20:56
  • Thanks a lot for the response! I think you're right, that's quite unfortunate. I tried the suggested fix of increasing metaspace memory (but I used 2 GB instead of the suggested 512 MB / 1GB), still to no avail... – Andrei Heidelbacher Jan 11 '21 at 00:21
  • Nevermind... It worked after lowering the memory to 1 GB and pulling the settings into a top-level gradle.properties file. Thanks! – Andrei Heidelbacher Jan 11 '21 at 00:46

1 Answers1

0

As mentioned by Francisco Mateo in this comment, this is a known issue of Dokka. As recommended in this duplicate issue, setting the metaspace memory in a top-level gradle.properties file eventually worked and fixed the build on Travis.