Kotlin Gradle Plugin - clean caches for in-process compilation
This is to prevent file handle leaks on Windows. This commit disposes KotlinCoreEnvironment used during in-process compilation. ^KT-49772 Fixed
This commit is contained in:
committed by
Yahor Berdnikau
parent
7f3b546288
commit
684273783f
@@ -573,6 +573,7 @@ class KotlinCoreEnvironment private constructor(
|
||||
/**
|
||||
* This method is also used in Gradle after configuration phase finished.
|
||||
*/
|
||||
@JvmStatic
|
||||
fun disposeApplicationEnvironment() {
|
||||
synchronized(APPLICATION_LOCK) {
|
||||
val environment = ourApplicationEnvironment ?: return
|
||||
|
||||
Reference in New Issue
Block a user