-
Notifications
You must be signed in to change notification settings - Fork 452
Closed
Labels
questionA user question, can be resolved if the question is answered/resolvedA user question, can be resolved if the question is answered/resolved
Milestone
Description
Question
I added the following in my build.gradle.kts
val dokkaJavadocJar by tasks.register<Jar>("dokkaJavadocJar") {
dependsOn(tasks.dokkaJavadoc)
from(tasks.dokkaJavadoc.get().outputDirectory.get())
archiveClassifier.set("javadoc")
}
val dokkaHtmlJar by tasks.register<Jar>("dokkaHtmlJar") {
dependsOn(tasks.dokkaHtml)
from(tasks.dokkaHtml.get().outputDirectory.get())
archiveClassifier.set("html-doc")
}
val sourceJar = task("sourceJar", Jar::class) {
dependsOn(tasks["classes"])
archiveClassifier.set("sources")
from(sourceSets.main.get().allSource)
}
artifacts {
archives(dokkaJavadocJar)
archives(dokkaHtmlJar)
archives(sourceJar)
}
However dokkaJavadocJar
produces the titled error:
java.lang.OutOfMemoryError: Metaspace
and the following
Task :compileJava FAILED
But I'm pretty sure is dokkaJavadocJar
the error root because if I comment it out, it works flawless
In order to fix this, I added in gradle.properties
org.gradle.jvmargs=-XX:MaxMetaspaceSize=512m
Installation
- Operating system: macOS/Windows/Linux
- Build tool: Gradle 6.6
- Dokka version: 1.4.0-dev-62
I wonder if this is "fine" or something nasty is happening in the background I shall be aware of
Ps: the very same problem happens also in other projects
GlenKPeterson, mvysny, grahamedgecombe, macjuul, joffrey-bion and 33 more
Metadata
Metadata
Assignees
Labels
questionA user question, can be resolved if the question is answered/resolvedA user question, can be resolved if the question is answered/resolved