From d2fb480593630ca65673ace40cbf8afed3b46772 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Sikora?= Date: Sat, 17 Oct 2020 12:58:22 +0200 Subject: [PATCH] Increase VM metaspace size for Dokka See https://github.com/Kotlin/dokka/issues/1405. --- library/build.gradle.kts | 4 ---- library/gradle.properties | 5 +++++ 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/library/build.gradle.kts b/library/build.gradle.kts index 234de9ce4..71d873321 100644 --- a/library/build.gradle.kts +++ b/library/build.gradle.kts @@ -16,7 +16,6 @@ buildscript { mavenCentral() gradlePluginPortal() google() - mavenLocal() // Used for sample snapshot testing. } dependencies { @@ -27,8 +26,6 @@ buildscript { classpath(Libs.Detekt.GradlePlugin) classpath(Libs.GradleVersions.GradlePlugin) classpath(Libs.Wire.GradlePlugin) - @Suppress("GradleDynamicVersion") // We want the latest version as we control it. - classpath("io.mehow.laboratory:laboratory-gradle-plugin:+") } } @@ -37,7 +34,6 @@ allprojects { mavenCentral() google() jcenter() - mavenLocal() // Used for sample snapshot testing. } group = properties["GROUP"]!! diff --git a/library/gradle.properties b/library/gradle.properties index 918db2d57..7b1e9aa69 100644 --- a/library/gradle.properties +++ b/library/gradle.properties @@ -16,3 +16,8 @@ POM_DEVELOPER_ID=michalsikora90 POM_DEVELOPER_NAME=Michal Sikora android.useAndroidX=true + +# Increase the build VMs heap size. Default is 512m. +# Increase metaspace for Dokka https://github.com/Kotlin/dokka/issues/1405 +org.gradle.jvmargs=-Xmx2g -XX:MaxMetaspaceSize=512m +org.gradle.parallel=true