jdiaz
03/19/2024, 8:55 PMJavier
03/19/2024, 9:21 PMjdiaz
03/20/2024, 6:01 PMjdiaz
03/20/2024, 6:02 PMprintln("Hello")
and it is failing to find stdlibtapchicoma
03/21/2024, 9:38 AMkotlin-stdlib
inside embeddable compilertapchicoma
03/21/2024, 9:39 AMjdiaz
03/21/2024, 5:04 PMtapchicoma
03/21/2024, 5:05 PMkotlinc
from command line?jdiaz
03/21/2024, 5:06 PMjdiaz
03/21/2024, 5:08 PMval arguments = K2JVMCompilerArguments().apply {
freeArgs = listFilesToCompile(project, target).map { it.absolutePath }
classpath = project.classPath(target)
kotlinHome = "/path/to/kotlin"
destination = project.folder.resolve("build").resolve(target.name.lowercase()).absolutePathString()
disableDefaultScriptingPlugin = true
}
val code = compiler.exec(PrintingMessageCollector(System.out, MessageRenderer.PLAIN_FULL_PATHS, true), Services.EMPTY, arguments)
jdiaz
03/21/2024, 5:08 PMtapchicoma
03/21/2024, 5:17 PM-no-stdlib
and -no-reflect
compiler options. And passes actual stdlib via classpathjdiaz
03/21/2024, 5:18 PMjdiaz
03/21/2024, 5:18 PMtapchicoma
03/21/2024, 5:21 PMjdiaz
03/21/2024, 5:23 PMjdiaz
03/21/2024, 5:25 PM