Run gradle import instead of usage of scripting API during configurations update
For Gradle 6.0 or higher ^KT-34481
This commit is contained in:
+1
-1
@@ -176,7 +176,7 @@ internal class DefaultScriptConfigurationManager(project: Project) :
|
||||
val shouldLoad = isFirstLoad || loadEvenWillNotBeApplied || autoReloadEnabled
|
||||
if (!shouldLoad) return
|
||||
|
||||
val postponeLoading = isPostponedLoad && !autoReloadEnabled
|
||||
val postponeLoading = isPostponedLoad && !autoReloadEnabled && !isFirstLoad
|
||||
|
||||
if (!ScriptDefinitionsManager.getInstance(project).isReady()) return
|
||||
val scriptDefinition = file.findScriptDefinition() ?: return
|
||||
|
||||
Reference in New Issue
Block a user