Created
June 20, 2023 19:19
-
-
Save maxandersen/9b5b36892f0f1835ce728a82ce44159c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
dev: | |
quarkus dev | |
jshell: | |
#!/usr/bin/env jbang --jsh | |
//DEPS com.github.javafaker:javafaker:1.0.2 | |
var faker = new com.github.javafaker.Faker(); | |
println(faker.nation().nationality()); | |
java: | |
#!/usr/bin/env jbang | |
//JAVA 21 | |
//PREVIEW | |
//DEPS com.github.javafaker:javafaker:1.0.2 | |
void main() { | |
var faker = new com.github.javafaker.Faker(); | |
System.out.println(faker.nation().nationality()); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Minimal example showing how to use jbang to enable
just
's polyglot support with java and jshell code.