How To Install Groovy On Windows
Run, debug, and test Smashing
Y'all can create, import, examination, and run Great applications equally you would any other projects.
Create a Cracking project
-
In the Project Magician, select Groovy.
-
Specify the post-obit settings:
-
Project SDK - specify your project SDK.
-
Groovy library - specify the Groovy SDK. IntelliJ IDEA expects the standard Not bad SDK layout which is provided with the official distributions available at http://groovy-lang.org/download.html. Download the SDK, unpack it into any directory and specify this directory as the library home.
-
Boosted libraries and frameworks - if you need, specify additional libraries and frameworks that Peachy supports.
-
Java EE version - select the appropriate Java EE version.
-
-
Click Next.
-
Specify your project information and click Finish.
To import a Groovy project, follow the steps from the Import a projection with settings section.
Add together Dandy support for an existing project
Yous can add the Keen framework support for an existing project. However, if you desire to add together the Groovy support for a Gradle or a Maven projection, employ their build script files (build.gradle or pom.xml). For more than information, refer to the Gradle or Maven documentation.
-
In the Projection tool window, right-click the project and from the context menu, select .
-
In the dialog that opens, select Smashing and click OK.
IntelliJ IDEA adds the Groovy SDK to your project and you lot can add together Groovy classes and Smashing scripts.
Cheque the version of Not bad in a project
Yous can check which version of Groovy SDK IntelliJ Thought uses in a project.
-
From the primary carte select File | Projection Structure Ctrl+Alt+Shift+South.
-
In the Project Structure dialog, under , select Global Libraries.
If you need to bank check what Groovy SDK version is used in a module, select Modules, the module'south proper name and click the Dependencies tab.
Modify the existing Smashing SDK version in a project
-
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).
-
When the Groovy SDK is removed, IntelliJ Thought displays a popup suggesting to add together the Smashing SDK.
Click the link and gear up a new SDK.
-
If IntelliJ Thought does not display the popup, in the Project tool window, correct-click the name of your projection and in the context bill of fare, select Add Framework Support.
-
In the dialog that opens, from the listing of technologies, select Bully and add a new Bully library.
IntelliJ Thought creates a global-level library.
Run a Corking awarding
Afterwards you entered code, you can run information technology through IntelliJ Thought or apply the interactive Smashing console for quick code evaluation.
-
Open your awarding in the editor.
-
Press Shift+F10 to execute the application. Alternatively, in the left gutter of the editor, click the
icon and select Run 'name'.
-
View the result in the Run tool window.
Debug a Groovy application
-
Open your Groovy application in the editor.
-
In the left gutter, fix your breakpoints for the lines of code you desire to debug. The debugger is aware of the Keen syntax, and you can evaluate an expression on the breakpoint if you need.
For more information on breakpoints, delight run across the Breakpoints section.
-
If yous need, you tin can admission the Run/Debug configurations dialog (Run | Edit Configurations) and adjust the settings, but normally the default settings are plenty to successfully get-go and complete your debugging session.
-
Printing Shift+F9. Alternatively, on the main toolbar, click the
icon to starting time a debugging procedure.
-
Evaluate the results in the Debug tool window.
For information on how to use options in the Debug tool window, run across the Debug code section.
When in the debug mode, you lot can evaluate any expression by using the Evaluate expression tool, which is accessed by pressing Alt+F8. This tool provides code completion in the aforementioned fashion as in the editor, so information technology's easy to enter any expression.
Sometimes, you may want to step into a detail method, but not the first one which will be invoked. In this case, use Smart step into by pressing Shift+F7 to choose a particular method.
Test a Bully application
You can test Great applications using JUnit 4 and JUnit five testing frameworks.
-
Open a class in the editor, for which you desire to create a exam and identify the cursor within the line containing the class declaration.
-
Printing Ctrl+Shift+T and select Create New Examination.
-
In the dialog that opens, specify your test settings and click OK.
-
Open the test in the editor, add lawmaking and press Ctrl+Shift+F10 or right-click the test class and from the context carte du jour select Run 'test proper name'.
-
IntelliJ Idea creates a run/debug configuration for the test automatically, just if you want to edit settings in your configuration, click from the main menu.
-
In the Run/Debug Configurations dialog, on the right-hand side, specify settings for the test suite and click OK. The configuration has standard options and you tin discover further details in the Run tests section.
-
On the principal toolbar, click the
icon to run the test.
-
Evaluate the results in the Run tool window.
Last modified: 22 December 2022
Source: https://www.jetbrains.com/help/idea/getting-started-with-groovy.html
Posted by: allenequir1996.blogspot.com
0 Response to "How To Install Groovy On Windows"
Post a Comment