In the left gutter, set your breakpoints for the lines of code you want to debug. Open your Groovy application in the editor. You can also click the icon on the main toolbar to run your application. To run a Groovy script, from the context menu in the editor, select Run 'name' Ctrl+Shift+F10. Alternatively, in the left gutter of the editor, click the icon and select Run 'name'. Press Shift+F10 to execute the application. IntelliJ IDEA creates a global-level library.Īfter you entered code, you can run it through IntelliJ IDEA or use the interactive Groovy console for quick code evaluation. In the dialog that opens, from the list of technologies, select Groovy and add a new Groovy library. If IntelliJ IDEA does not display the popup, in the Project tool window, right-click the name of your project and in the context menu, select Add Framework Support. When the Groovy SDK is removed, IntelliJ IDEA displays a popup suggesting to add the Groovy SDK. In the Project Structure Ctrl+Alt+Shift+S dialog, delete Ctrl+Y the existing Groovy SDK version from Global Libraries and from module dependencies (the Modules page). If you need to check what Groovy SDK version is used in a module, select Modules, the module's name and click the Dependencies tab.Ĭhange the existing Groovy SDK version in a project In the Project Structure dialog, under Platform Settings, select Global Libraries. You can check which version of Groovy SDK IntelliJ IDEA uses in a project.įrom the main menu select File | Project Structure Ctrl+Alt+Shift+S. IntelliJ IDEA adds the Groovy SDK to your project and you can add Groovy classes and Groovy scripts. In the dialog that opens, select Groovy and click OK. In the Project tool window, right-click the project and from the context menu, select Add Framework Support. For more information, refer to the Gradle or Maven documentation. However, if you want to add the Groovy support for a Gradle or a Maven project, use their build script files ( adle or pom.xml). You can add the Groovy framework support for an existing project. ![]() Add Groovy support for an existing project ![]() To import a Groovy project, follow the steps from the Import a project with settings section. Specify your project information and click Finish. Java EE version - select the appropriate Java EE version. To add a library dependency after you've created or imported your Groovy project, refer to the add a library to the module dependencies section. Download the SDK, unpack it into any directory and specify this directory as the library home.Īdditional libraries and frameworks - if you need, specify additional libraries and frameworks that Groovy supports. IntelliJ IDEA expects the standard Groovy SDK layout which is provided with the official distributions available at. You can create, import, test, and run Groovy applications as you would any other projects.īefore you start working with Groovy, make sure the Groovy plugin is enabled in IntelliJ IDEA.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |