Skip to content

Commit c8b8fed

Browse files
committed
Change the list of Gradle progress event messages that we listen to
This makes the list populate a bit more slowly but makes ever line that the user sees feel a bit more informative. And after some tests, it's not so slow that you don't think anything is soft locked. That said, I will experiment adding a spinner into a followup commit.
1 parent 9b35b0f commit c8b8fed

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

kobweb/src/main/kotlin/com/varabyte/kobweb/cli/common/GradleUtils.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ class KobwebGradle(private val env: ServerEnvironment, projectDir: File) : Close
138138
// Add a progress listener specifically with the purpose of picking up events that will happen frequently during
139139
// the startup lifecycle, so we can show users something is happening (besides just "please wait, trust us")
140140
// before tasks start getting executed.
141-
val startupProgressEvents = listOf(OperationType.GENERIC, OperationType.PROJECT_CONFIGURATION)
141+
val startupProgressEvents = listOf(OperationType.PROJECT_CONFIGURATION, OperationType.FILE_DOWNLOAD)
142142

143143
onStarting(OnStartingEvent(task, finalArgs))
144144
projectConnection.newBuild()

0 commit comments

Comments
 (0)