File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
src/main/kotlin/com/compiler/server/compiler/components Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -129,7 +129,7 @@ val buildLambda by tasks.creating(Zip::class) {
129129 from(compilerPluginsForJVMFolder) { into(compilerPluginsForJVM) }
130130 from(libComposeWasmCompilerPluginsFolder) { into(libComposeWasmCompilerPlugins) }
131131 into(" lib" ) {
132- from(configurations.compileClasspath ) { exclude(" tomcat-embed-*" ) }
132+ from(configurations.productionRuntimeClasspath ) { exclude(" tomcat-embed-*" ) }
133133 }
134134}
135135
Original file line number Diff line number Diff line change @@ -134,7 +134,7 @@ class KotlinCompiler(
134134 .filter { it.name.endsWith(" .kt" ) }
135135 .associate { it.name to mutableListOf () }
136136
137- val toolchains = KotlinToolchains .loadImplementation(ClassLoader .getSystemClassLoader() )
137+ val toolchains = KotlinToolchains .loadImplementation(this :: class .java.classLoader )
138138 val jvmToolchain = toolchains.getToolchain(JvmPlatformToolchain ::class .java)
139139 val operation = jvmToolchain.createJvmCompilationOperation(sources, outputDir)
140140 operation.compilerArguments.applyArgumentStrings(arguments)
You can’t perform that action at this time.
0 commit comments