implicitImportsForScript

fun implicitImportsForScript(scriptText: CharSequence, environment: Environment?): List<String>(source)

Returns the implicit imports shared by all precompiled scripts.

Since Gradle 9.10.0, it does not return the type-safe accessors imports of the script, because they are found by the script file name, which is not known here.

Since

6.0