From 8b74db447ecec12953b32988d37438c3bce41a05 Mon Sep 17 00:00:00 2001 From: Ilya Matveev Date: Fri, 20 Mar 2020 20:20:33 +0700 Subject: [PATCH] [samples] Configure samples for in-process compiler execution --- samples/androidNativeActivity/gradle.properties | 8 ++++++-- samples/calculator/gradle.properties | 8 ++++++-- samples/cocoapods/kotlin-library/gradle.properties | 8 ++++++-- samples/gradle.properties | 6 +++++- 4 files changed, 23 insertions(+), 7 deletions(-) diff --git a/samples/androidNativeActivity/gradle.properties b/samples/androidNativeActivity/gradle.properties index 51b47f2ae23..549b800b9cc 100644 --- a/samples/androidNativeActivity/gradle.properties +++ b/samples/androidNativeActivity/gradle.properties @@ -1,8 +1,9 @@ kotlin.code.style=official # Run parallel builds in Gradle: -org.gradle.parallel=true -org.gradle.workers.max=4 +# TODO: Enable parallel build when KT-37550 is fixed. +#org.gradle.parallel=true +#org.gradle.workers.max=4 # Pin Kotlin version: # CHANGE_VERSION_WITH_RELEASE @@ -10,3 +11,6 @@ kotlin_version=1.3.70 # Use custom Kotlin/Native home: org.jetbrains.kotlin.native.home=../../dist + +# Increase memory for in-process compiler execution. +org.gradle.jvmargs=-Xmx3g diff --git a/samples/calculator/gradle.properties b/samples/calculator/gradle.properties index 6edb466a54e..2e0a002a29f 100644 --- a/samples/calculator/gradle.properties +++ b/samples/calculator/gradle.properties @@ -1,8 +1,9 @@ kotlin.code.style=official # Run parallel builds in Gradle: -org.gradle.parallel=true -org.gradle.workers.max=4 +# TODO: Enable parallel build when KT-37550 is fixed. +#org.gradle.parallel=true +#org.gradle.workers.max=4 # Pin Kotlin version: # CHANGE_VERSION_WITH_RELEASE @@ -10,3 +11,6 @@ kotlin_version=1.3.70 # Use custom Kotlin/Native home: org.jetbrains.kotlin.native.home=../../../dist + +# Increase memory for in-process compiler execution. +org.gradle.jvmargs=-Xmx3g diff --git a/samples/cocoapods/kotlin-library/gradle.properties b/samples/cocoapods/kotlin-library/gradle.properties index 6edb466a54e..2e0a002a29f 100644 --- a/samples/cocoapods/kotlin-library/gradle.properties +++ b/samples/cocoapods/kotlin-library/gradle.properties @@ -1,8 +1,9 @@ kotlin.code.style=official # Run parallel builds in Gradle: -org.gradle.parallel=true -org.gradle.workers.max=4 +# TODO: Enable parallel build when KT-37550 is fixed. +#org.gradle.parallel=true +#org.gradle.workers.max=4 # Pin Kotlin version: # CHANGE_VERSION_WITH_RELEASE @@ -10,3 +11,6 @@ kotlin_version=1.3.70 # Use custom Kotlin/Native home: org.jetbrains.kotlin.native.home=../../../dist + +# Increase memory for in-process compiler execution. +org.gradle.jvmargs=-Xmx3g diff --git a/samples/gradle.properties b/samples/gradle.properties index a96ba6a0f66..11d7eed5e54 100644 --- a/samples/gradle.properties +++ b/samples/gradle.properties @@ -1,7 +1,8 @@ kotlin.code.style=official # Run parallel builds in Gradle: -org.gradle.parallel=true +# TODO: Enable parallel build when KT-37550 is fixed. +#org.gradle.parallel=true # Pin Kotlin version: # CHANGE_VERSION_WITH_RELEASE @@ -10,3 +11,6 @@ kotlin_version=1.3.70 # Use custom Kotlin/Native home: org.jetbrains.kotlin.native.home=../../dist org.gradle.workers.max=4 + +# Increase memory for in-process compiler execution. +org.gradle.jvmargs=-Xmx3g