How to Write Groovy Code in STS: Groovy Support in STS to Create Spock Tests Groovy Java Testing Spock Spring Spring Boot by devs5003 - November 22, 20260 How to Write Groovy Code in STS: Install Groovy Support in STS and Create Spock Tests If you are a Java developer working with Spring Boot and Spock Framework, you might encounter an unexpected problem while writing your first Spock test: Spring Tool Suite (STS) does not recognize Groovy files properly. You may be able to add Groovy dependencies to your Maven project, execute Maven commands, and configure Spock Framework. However, when you try to create a '.groovy' file in STS, you might not get proper syntax highlighting, code completion, error detection, or a dedicated Groovy editor. This happens because Spring Tool Suite is primarily an Eclipse-based development environment with Java and Spring tooling. Groovy language support is provided separately through the Groovy-Eclipse