Skip to content
This repository was archived by the owner on Dec 3, 2025. It is now read-only.

Commit 5d506e9

Browse files
committed
Document report parameter for future reference
1 parent d13ff73 commit 5d506e9

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

provider/src/main/kotlin/org/gradle/kotlin/dsl/resolver/KotlinBuildScriptDependenciesResolver.kt

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,15 @@ class KotlinBuildScriptDependenciesResolver : ScriptDependenciesResolver {
4242
override fun resolve(
4343
script: ScriptContents,
4444
environment: Map<String, Any?>?,
45+
/**
46+
* Shows a message in the IDE.
47+
*
48+
* To report whole file errors (e.g. failure to query for dependencies), one can just pass null
49+
* so the error/warning will be shown in the top panel of the editor
50+
*
51+
* Also there is a FATAL Severity - in this case the highlighting of the file will be
52+
* switched off (may be it is useful for some errors).
53+
*/
4554
report: (ScriptDependenciesResolver.ReportSeverity, String, ScriptContents.Position?) -> Unit,
4655
previousDependencies: KotlinScriptExternalDependencies?
4756
) = future {

0 commit comments

Comments
 (0)