Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/wololock/groovy-4-examples


https://github.com/wololock/groovy-4-examples

Last synced: 28 days ago
JSON representation

Awesome Lists containing this project

README

        

# Groovy 4 Examples



## Install the latest Groovy

```bash
sdk install groovy
```

Get SDKMAN - https://sdkman.io/

## Run a single script with `groovy` command

```bash
cd examples/

groovy 01_basic_switch_expressions.groovy
```

## Run a single script using Gradle

```bash
./gradlew -q runScript -PmainClass=01_basic_switch_expressions
```

## Run all scripts using Gradle

```bash
chmod +x ./runall.sh

./runall.sh
```