Learn Groovy
Structured lessons from the basics up — follow the path below in order, at your own pace.
-
1
Level 1 — Beginner Beginner 24 lessons
Start here if you have never written a line of Groovy before. No programming experience is required — work through these lessons in order, s...
Lessons in this module
What Is Groovy? Why Learn Groovy? What Can You Do With Groovy? Installing Groovy Setting Up Your Environment Your First Program How Groovy Code Runs Variables and def Data Types Numbers and Math Strings and GStrings String Methods Operators Groovy Truth and if Statements The switch Statement Loops Ranges Lists Maps Methods Closures Working with Collections Input and Command-Line Arguments Comments and Style -
2
Beginner Projects Beginner 1 lesson
Build these on your own using what you learned in Level 1. Each one uses variables, strings, lists, maps, loops, methods, and closures. 1. N...
-
3
Level 2 — Intermediate Intermediate 17 lessons
These lessons cover closures in depth, the collection toolkit and GINQ, classes, inheritance and interfaces, traits, AST transformations, en...
Lessons in this module
Closures in Depth The Collection Toolkit Classes and Objects Inheritance and Interfaces Traits AST Transformations Enums and Records Exceptions and Error Handling Regular Expressions Files and I/O Optional Typing and Type Checking Static Compilation Operator Overloading Working with JSON Working with XML Builders Using Java Libraries -
4
Intermediate Projects Intermediate 1 lesson
Build these using classes, traits, AST transformations, closures, files, JSON, XML, and builders from Level 2. 1. Library Management System...
-
5
Level 3 — Advanced Advanced 14 lessons
These lessons cover runtime and compile time metaprogramming, categories and extension modules, building DSLs, embedding Groovy and script s...
Lessons in this module
Runtime Metaprogramming Categories and Extension Modules Compile-Time Metaprogramming Building Domain-Specific Languages Embedding Groovy and Script Security Concurrency Command-Line Scripts and Automation Gradle Build Scripts Jenkins Pipelines Testing with Spock Web Applications with Grails and Micronaut Performance Project Structure, Tooling, and Deployment Best Practices for Production Groovy -
6
Advanced Projects Advanced 1 lesson
Build these using metaprogramming, DSLs, concurrency, Gradle, Jenkins, and Spock from Level 3. 1. A Deployment DSL Design a DSL for describi...
-
7
What You Should Know Now — and What's Next 1 lesson
What You Should Know Now Variables, def and types, BigDecimal math, strings and GStrings Groovy Truth, the powerful switch , loops, and rang...