Introducing Spring Framework

Introducing Spring Framework Introducing Spring Framework

25.02.2015 Views

Appendix A ■ Installing Tools Installing Gradle on a Mac OS X or Linux Remember that you need to have the GVM installed already, and this is because Gradle depends on it. So, to install Gradle on a Mac or a Linux computer, just execute the next command: $ gvm install gradle You can test your Gradle tool by executing $ gradle -v ------------------------------------------------------------ Gradle 1.12 ------------------------------------------------------------ Build time: 2014-04-29 09:24:31 UTC Build number: none Revision: a831fa866d46cbee94e61a09af15f9dd95987421 Groovy: 1.8.6 Ant: Apache Ant(TM) version 1.9.3 compiled on December 23 2013 Ivy: 2.2.0 JVM: 1.8.0_05 (Oracle Corporation 25.5-b02) OS: Linux 3.13.0-24-generic amd64 Installing Groovy Groovy is another programming language that you will need to use from the start of the book. Groovy has become one of the most important dynamic languages in the JVM ecosystem, providing many features that other languages have borrowed, even the new JDK 8—features like closures! For information about Groovy news and latest releases, go to http://groovy.codehaus.org (as shown in Figure A-23). 306

Appendix A ■ Installing Tools Figure A-23. Groovy Web Page Installing Groovy on Windows To install Groovy on Windows, go to http://groovy.codehaus.org/Download and choose the Windows installer. It will be something similar to the Java installer. Choose all the default settings. Even though the installer sets all the environment variables, you need to make sure the GROOVY_HOME\bin is at the beginning of the Path variable, as shown in Figure A-24. Figure A-24. Path Environment Variable Dialog 307

Appendix A ■ Installing Tools<br />

Figure A-23. Groovy Web Page<br />

Installing Groovy on Windows<br />

To install Groovy on Windows, go to http://groovy.codehaus.org/Download and choose the Windows installer. It<br />

will be something similar to the Java installer. Choose all the default settings. Even though the installer sets all the<br />

environment variables, you need to make sure the GROOVY_HOME\bin is at the beginning of the Path variable, as shown<br />

in Figure A-24.<br />

Figure A-24. Path Environment Variable Dialog<br />

307

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!