├── .gitignore ├── README.md ├── grape-script-example ├── .dockerignore ├── .gitignore ├── 01-run-as-groovy.sh ├── 02-run-as-java.sh ├── 03-run-as-native-image.sh ├── CountLinks.groovy ├── Dockerfile ├── README.md ├── compile-native-image.sh ├── config │ └── compiler.groovy └── countlinks.sh └── hello-world ├── README.md ├── compile.sh ├── conf ├── compiler.groovy └── removeFromJson.groovy └── hello.groovy /.gitignore: -------------------------------------------------------------------------------- 1 | .idea/ 2 | *.class 3 | countlinks 4 | hello 5 | out/ -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /grape-script-example/.dockerignore: -------------------------------------------------------------------------------- 1 | out/ 2 | *.class 3 | countlinks -------------------------------------------------------------------------------- /grape-script-example/.gitignore: -------------------------------------------------------------------------------- 1 | countlinks -------------------------------------------------------------------------------- /grape-script-example/01-run-as-groovy.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wololock/graalvm-groovy-examples/HEAD/grape-script-example/01-run-as-groovy.sh -------------------------------------------------------------------------------- /grape-script-example/02-run-as-java.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wololock/graalvm-groovy-examples/HEAD/grape-script-example/02-run-as-java.sh -------------------------------------------------------------------------------- /grape-script-example/03-run-as-native-image.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wololock/graalvm-groovy-examples/HEAD/grape-script-example/03-run-as-native-image.sh -------------------------------------------------------------------------------- /grape-script-example/CountLinks.groovy: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wololock/graalvm-groovy-examples/HEAD/grape-script-example/CountLinks.groovy -------------------------------------------------------------------------------- /grape-script-example/Dockerfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wololock/graalvm-groovy-examples/HEAD/grape-script-example/Dockerfile -------------------------------------------------------------------------------- /grape-script-example/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wololock/graalvm-groovy-examples/HEAD/grape-script-example/README.md -------------------------------------------------------------------------------- /grape-script-example/compile-native-image.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wololock/graalvm-groovy-examples/HEAD/grape-script-example/compile-native-image.sh -------------------------------------------------------------------------------- /grape-script-example/config/compiler.groovy: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wololock/graalvm-groovy-examples/HEAD/grape-script-example/config/compiler.groovy -------------------------------------------------------------------------------- /grape-script-example/countlinks.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | ./countlinks -Djava.library.path=$JAVA_HOME/jre/lib/amd64 $1 -------------------------------------------------------------------------------- /hello-world/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wololock/graalvm-groovy-examples/HEAD/hello-world/README.md -------------------------------------------------------------------------------- /hello-world/compile.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wololock/graalvm-groovy-examples/HEAD/hello-world/compile.sh -------------------------------------------------------------------------------- /hello-world/conf/compiler.groovy: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wololock/graalvm-groovy-examples/HEAD/hello-world/conf/compiler.groovy -------------------------------------------------------------------------------- /hello-world/conf/removeFromJson.groovy: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wololock/graalvm-groovy-examples/HEAD/hello-world/conf/removeFromJson.groovy -------------------------------------------------------------------------------- /hello-world/hello.groovy: -------------------------------------------------------------------------------- 1 | println "Hello, ${(getProperty("args") as List)[0] ?: 'World'}!" 2 | --------------------------------------------------------------------------------