This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Last revision Both sides next revision | ||
installation [2014/08/19 19:39] poslavskysv |
installation [2015/11/21 12:33] 127.0.0.1 external edit |
||
---|---|---|---|
Line 17: | Line 17: | ||
- Open IntelliJ and create new Groovy project (File -> NewProject, select Groovy): {{::ideanewproject.png?625|}} | - Open IntelliJ and create new Groovy project (File -> NewProject, select Groovy): {{::ideanewproject.png?625|}} | ||
- Ensure, that Project SDK is set to 1.7 (or higher), otherwise specify your JDK folder (New -> JDK):{{::ideaspecifysdk.png?700|}} | - Ensure, that Project SDK is set to 1.7 (or higher), otherwise specify your JDK folder (New -> JDK):{{::ideaspecifysdk.png?700|}} | ||
- | - Specify the Groovy installation:\\ {{::ideaspecifygroovy.png?500|}} | + | - Specify the Groovy installation:\\ {{::ideaspecifygroovy.png?720|}} |
- Press finish and IntelliJ will create a new project. Then create a new Groovy script:{{::ideanewgroovyscript.png?500|}} | - Press finish and IntelliJ will create a new project. Then create a new Groovy script:{{::ideanewgroovyscript.png?500|}} | ||
- Add the following lines in the newly created file:<sxh groovy; gutter: false> | - Add the following lines in the newly created file:<sxh groovy; gutter: false> | ||
- | @Grab(group = 'cc.redberry', module = 'groovy', version = '1.1.6') | + | @Grab(group = 'cc.redberry', module = 'groovy', version = '1.1.8') |
import cc.redberry.groovy.Redberry | import cc.redberry.groovy.Redberry | ||
</sxh> | </sxh> | ||
Line 38: | Line 38: | ||
You can run Redberry script directly in console. For this wrap your Redberry code like in the following example: | You can run Redberry script directly in console. For this wrap your Redberry code like in the following example: | ||
<sxh groovy; gutter: false> | <sxh groovy; gutter: false> | ||
- | @Grab(group = 'cc.redberry', module = 'groovy', version = '1.1.6') | + | @Grab(group = 'cc.redberry', module = 'groovy', version = '1.1.8') |
import cc.redberry.groovy.Redberry | import cc.redberry.groovy.Redberry | ||
import static cc.redberry.groovy.RedberryPhysics.* | import static cc.redberry.groovy.RedberryPhysics.* | ||
Line 76: | Line 76: | ||
</sxh> | </sxh> | ||
This will produce same file as one can download from Downloads page in ''target/'' directory. | This will produce same file as one can download from Downloads page in ''target/'' directory. | ||
+ |