-
Notifications
You must be signed in to change notification settings - Fork 125
/
gradle.properties
80 lines (60 loc) · 3.04 KB
/
gradle.properties
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
version=999.0.0.999
android.useAndroidX=true
#enabledSandboxResourceProcessor=false
enabledSandboxResourceProcessor=true
enableKotlinNative=true
enableKotlinMobile=true
enableKotlinAndroid=true
enableKotlinMobileTvos=true
enableMetalPlayground=false
# So we have ie. `INCLUDE_KORLIBS_SAMPLES=true ./gradlew :samples:fleks-ecs:runNativeRelease`:
# * 2gb for gradle daemon (Kotlin/Native linking / optimizations happens here, instead in the kotlin compiler daemon)
# * 2gb for kotlin compiler daemon (kotlin.compiler.execution.strategy=in-process doesn't work anymore)
# * 3gb for clang
# 7gb just for compiling, since GC is not executed to those processes automatically before starting clang, which would be nice
# 7gb on linux and windows on github actions: https://docs.github.com/en/actions/using-github-hosted-runners/about-github-hosted-runners#supported-runners-and-hardware-resources
# NOTES:
# * GC should be executed before running clang on gradle and the kotlin compiler daemon
# * And Kotlin/Native stuff should happen in the same process as the other compilations, so memory goes there
# * We then could give gradle 1gb of memory or less, and the kotlin daemon 3gb or 4gb of RAM
org.gradle.jvmargs=-Xmx2g -Dkotlin.daemon.jvm.options="-Xmx3g" -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8
# -Dorg.gradle.debug=true --no-daemon
# export GRADLE_OPTS="-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=5005 -Dorg.gradle.daemon=false -Dkotlin.compiler.execution.strategy=in-process"
# ./gradlew jsTest
#org.gradle.daemon=false
# gradle
systemProp.org.gradle.internal.http.connectionTimeout=160000
systemProp.org.gradle.internal.http.socketTimeout=160000
systemProp.org.gradle.internal.repository.max.retries=16
systemProp.org.gradle.internal.repository.initial.backoff=500
# project info
project.name=korge-next-root
project.scm.url=https://github.com/korlibs/korge-next
project.description=Multiplatform Kotlin Game Engine
project.license.name=MIT
project.license.url=https://raw.githubusercontent.com/korlibs/korge-next/master/korge/LICENSE.txt
#kotlin.native.disableCompilerDaemon=true
#kotlin.compiler.execution.strategy=in-process
#kotlin.mpp.enableCompatibilityMetadataVariant=true
#kotlin.mpp.enableCInteropCommonization.nowarn=true
#kotlin.mpp.enableCInteropCommonization=true
kotlin.mpp.stability.nowarn=true
kotlin.wasm.stability.nowarn=true
org.gradle.warning.mode=none
kotlin.native.ignoreIncorrectDependencies=true
kotlin.native.ignoreDisabledTargets=true
#kotlin.mpp.androidSourceSetLayoutVersion=2
kotlin.mpp.androidSourceSetLayoutVersion1.nowarn=true
org.gradle.daemon=true
# https://kotlinlang.org/docs/whatsnew17.html#a-new-approach-to-incremental-compilation
kotlin.incremental.useClasspathSnapshot=true
#android.disableAutomaticComponentCreation=true
#kotlin.build.report.output=file
org.gradle.parallel=true
#enableMFVC=true
enableMFVC=false
kotlin.mpp.applyDefaultHierarchyTemplate=false
#org.gradle.configureondemand=true
#org.gradle.unsafe.configuration-cache=true
#org.gradle.unsafe.configuration-cache-problems=warn
org.gradle.caching=true