https://kotlinlang.org logo
#kapt
Title
# kapt
s

Sha Sha Chu

03/15/2023, 2:29 PM
what are the levers we have in terms of how much memory is available to kapt? is it just the kotlin compiler daemon memory params?
by that i mean
kotlin.daemon.jvm.options
based on this issue it seems like there is maybe no way to configure kapt memory options? https://youtrack.jetbrains.com/issue/KT-45757/Add-an-easier-way-to-explicitly-set-Kotlin-daemon-jvm-arguments
t

tapchicoma

03/16/2023, 9:04 PM
kaptGenerateStubs are running via Kotlin daemon - so Kotlin jvm options should affect it as well Kapt runs separately via Gradle worker. In this case you may try using
org.jetbrains.kotlin.gradle.internal.KaptWithoutKotlincTask.kaptProcessJvmArgs
task input to configure memory constraints for worker
s

Sha Sha Chu

03/16/2023, 10:41 PM
awesome, thank you
@tapchicoma if you are running with
--no-daemon
does any of that change?
t

tapchicoma

03/17/2023, 9:30 AM
no
10 Views