K2 Scripting: compiler extension for script configuration

This commit is contained in:
Ilya Chernikov
2022-11-22 15:36:53 +01:00
committed by Space Team
parent a89dfdce03
commit 00a28f9f49
13 changed files with 377 additions and 38 deletions
@@ -17,6 +17,10 @@ import kotlin.script.experimental.api.ScriptCompilationConfiguration
import kotlin.script.experimental.api.valueOrNull
import kotlin.script.experimental.dependencies.ScriptDependencies
// Note: misleading name, it is now general configurations provider, not only for dependencies
// but we are affraid to touch it so far, since the impact should be assessed first
// TODO: consider deprecating completely and swith to a new interface in the K2
// TODO: support SourceCode (or KtSourceFile) as a key
open class ScriptDependenciesProvider constructor(
protected val project: Project
) {