Groovy for Java
developers
Peter Ledbrook
e: p.ledbrook@cacoethes.co.uk	

t: @pledbrook
To answer the
question…
Why would you use a language called Groovy?
Background
Copyright © 2014 Cacoethes Software
What is Groovy?
OO language for the JVM
Java-like syntax
Optional types
Dynamic or Sta...
Copyright © 2014 Cacoethes Software
Groovy is compiled
Groovy Source
Java Byte Code
JVM
Compilation
java -cp groovy-all-2....
Copyright © 2014 Cacoethes Software
Groovy is compiled
Groovy Source
Java Byte Code
JVM
Compilation
java -cp groovy-all-2....
Copyright © 2014 Cacoethes Software
How do you use it?
http://groovyconsole.appspot.com/
Copyright © 2014 Cacoethes Software
How do you use it?
Download Groovy
development kit (GDK)
Install
groovy, groovyConsole...
Copyright © 2014 Cacoethes Software
How do you use it?
Install msysgit
Install GVM
gvm install groovy 2.2.2
http://gvmtool...
Copyright © 2014 Cacoethes Software
How do you use it?
Copyright © 2014 Cacoethes Software
How do you use it?
Let’s see it in action!
In summary
• Great for cross-platform scripting	

• Ideal for tests	

• Seamless integration with Java	

• Solid for appli...
A great ecosystem!
Geb
SpockGVM
Ratpack
Thank you!
Upcoming SlideShare
Loading in …5
×

Groovy for Java Developers

1,038 views

Published on

This is the slide part of a talk that introduces the Groovy programming language to Java developers. The focus is on what you can do with it rather than the details of how to program in it. Most of the presentation is also live coding, so the slides aren't much use on their own.

0 Comments
3 Likes
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total views
1,038
On SlideShare
0
From Embeds
0
Number of Embeds
233
Actions
Shares
0
Downloads
17
Comments
0
Likes
3
Embeds 0
No embeds

No notes for slide

Groovy for Java Developers

  1. 1. Groovy for Java developers Peter Ledbrook e: p.ledbrook@cacoethes.co.uk t: @pledbrook
  2. 2. To answer the question…
  3. 3. Why would you use a language called Groovy?
  4. 4. Background
  5. 5. Copyright © 2014 Cacoethes Software What is Groovy? OO language for the JVM Java-like syntax Optional types Dynamic or Static - your choice! Simple & expressive
  6. 6. Copyright © 2014 Cacoethes Software Groovy is compiled Groovy Source Java Byte Code JVM Compilation java -cp groovy-all-2.3.0.jar …
  7. 7. Copyright © 2014 Cacoethes Software Groovy is compiled Groovy Source Java Byte Code JVM Compilation java -cp groovy-all-2.3.0.jar … Just add Groovy JAR to your classpath
  8. 8. Copyright © 2014 Cacoethes Software How do you use it? http://groovyconsole.appspot.com/
  9. 9. Copyright © 2014 Cacoethes Software How do you use it? Download Groovy development kit (GDK) Install groovy, groovyConsole, groovysh http://groovy.codehaus.org/Download
  10. 10. Copyright © 2014 Cacoethes Software How do you use it? Install msysgit Install GVM gvm install groovy 2.2.2 http://gvmtool.net/ (Windows only) Run as Administrator
  11. 11. Copyright © 2014 Cacoethes Software How do you use it?
  12. 12. Copyright © 2014 Cacoethes Software How do you use it? Let’s see it in action!
  13. 13. In summary • Great for cross-platform scripting • Ideal for tests • Seamless integration with Java • Solid for application development
  14. 14. A great ecosystem! Geb SpockGVM Ratpack
  15. 15. Thank you!

×