Set up an efficient local development workflow with Guidewire Studio, including hot reload, Gosu debugging, and continuous testing.
Install IntelliJ plugins: Gosu Language Support, Guidewire Studio Plugin, EditorConfig. Set Gradle JVM to JDK 17, enable auto-import, and set test runner to Gradle.
createdb -U postgres pc_dev
./gradlew dbUpgrade
./gradlew loadSampleData # Generate sample data
./gradlew runServer # Start with hot reload
./gradlew runServer --debug-jvm # Start with debugging on port 5005
./gradlew :policycenter:runServer # Start specific application
Enable hot swap in config/dev-config.xml, then attach IntelliJ debugger to port 5005. Gosu and PCF changes will auto-reload.
./gradlew test # All tests
./gradlew test --tests "gw.custom.MyServiceTest" # Specific class
./gradlew test jacocoTestReport # With coverage
./gradlew test --continuous # Watch mode
For detailed Gradle config, Gosu examples, PCF development, and keyboard shortcuts, load the reference guide:
Read(${CLAUDE_SKILL_DIR}/references/implementation-guide.md)
| Error | Cause | Solution |
|---|---|---|
| Port already in use | Server already running | Kill existing process or change port |
| Database connection failed | Wrong credentials/missing DB | Check postgres is running |
| Gosu compilation error | Syntax error | Check IDE error highlights |
| Hot reload not working | Debug not attached | Reconnect debugger |
| Out of memory | Insufficient heap | Increase -Xmx in jvmArgs |
For SDK and API patterns, see guidewire-sdk-patterns.
Basic usage: Apply guidewire local dev loop to a standard project setup with default configuration options.
Advanced scenario: Customize guidewire local dev loop for production environments with multiple constraints and team-specific requirements.