Skip to content

Commit

Permalink
Fix OOME in Dokka
Browse files Browse the repository at this point in the history
  • Loading branch information
DRSchlaubi committed Oct 21, 2024
1 parent 5040050 commit 9185b6d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
import org.gradle.kotlin.dsl.assign
import org.gradle.kotlin.dsl.kord
import org.jetbrains.dokka.gradle.workers.ProcessIsolation
import org.jetbrains.kotlin.gradle.targets.native.tasks.KotlinNativeSimulatorTest
import org.jetbrains.kotlin.konan.target.Family
import org.jetbrains.kotlin.gradle.dsl.JvmTarget
Expand Down Expand Up @@ -70,6 +72,9 @@ tasks {
}

dokka {
// Dokka runs out of memory with the default maxHeapSize when ProcessIsolation is used
(dokkaGeneratorIsolation.get() as? ProcessIsolation)?.maxHeapSize = "1g"

dokkaSourceSets.configureEach {
sourceLink {
localDirectory = project.file("src/main/kotlin")
Expand Down

0 comments on commit 9185b6d

Please sign in to comment.