@@ -14,8 +14,8 @@ const gradleSyncLockFile = "/tmp/gitpod-gradle.lock"
1414
1515var jetbrainsGradlePauseCmd = & cobra.Command {
1616 Use : "pause" ,
17- Short : "Pause Gradle Sync in JetBrains IDEs " ,
18- Long : `Pause JetBrains IDE gradle sync to prevent performance issues on Gitpod workspace startup when there's no Prebuilds ready.
17+ Short : "Pause JetBrains' builtin automatic Gradle Sync " ,
18+ Long : `Pause JetBrains' builtin automatic Gradle Sync to prevent performance issues on Gitpod workspace startup when there's no Prebuilds ready.
1919
2020This command is typically used to prevent concurrent Gradle syncs between:
2121- Manual gradle initialization in Gitpod init tasks
@@ -25,25 +25,27 @@ Typical usage in your .gitpod.yml:
2525
2626tasks:
2727 - init: |
28- gp jetbrains gradle pause # Prevent JetBrains' gradle sync
29- ...
28+ gp jetbrains gradle pause # Prevent JetBrains' auto gradle sync at beginning
29+ ...
3030 ./gradlew <init_service> # Run your initialization tasks
31- gp jetbrains gradle resume # Enable
31+ gp jetbrains gradle resume # Enable
3232 command: ./gradlew <dev_service>
3333
3434If you have two init tasks want to pause Gradle Sync:
3535
3636tasks:
3737 - name: Task 1
3838 init: |
39- gp jetbrains gradle pause # Prevent JetBrains' gradle sync
39+ gp jetbrains gradle pause # Prevent JetBrains' auto gradle sync
4040 ./gradlew <init_service>
4141 gp sync-await gradle-init-1
4242 gp jetbrains gradle resume # Enable
4343 - name: Task 2
4444 init: |
4545 ./gradlew <init_service>
4646 gp sync-done gradle-init-1
47+ - name: Task 3
48+ command: echo hi there
4749` ,
4850 RunE : func (cmd * cobra.Command , args []string ) error {
4951 err := os .WriteFile (gradleSyncLockFile , []byte {}, 0644 )
0 commit comments