Scripting: avoid definitions discovery when compiling regular kotlin

If only regular kotlin .kt (and .java) files are compiled, do not
register file extensions that may come from discovered script
definitions. Since the discovery is lazy by itself, this should
skip jars processing for regular compilation scenarios without scripts.
#KT-47816 fixed
This commit is contained in:
Ilya Chernikov
2022-06-10 14:27:00 +02:00
committed by teamcity
parent 5caf2a2aca
commit c2316ca305
11 changed files with 102 additions and 17 deletions
@@ -0,0 +1,4 @@
fun main() {
println("OK")
}