Last active
November 1, 2022 17:36
-
-
Save source-c/727790b644316e1a071f412b92cb33b2 to your computer and use it in GitHub Desktop.
JShell shell wrapper for JsonPath repl
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
#!/usr/bin/env bash | |
mvn org.apache.maven.plugins:maven-dependency-plugin:2.1:get \ | |
-Dartifact=net.minidev:asm:1.0.2 \ | |
-DrepoUrl=https://mvnrepository.com/artifact/net.minidev/asm | |
exec jshell --class-path \ | |
~/.m2/repository/com/jayway/jsonpath/json-path/2.6.0/json-path-2.6.0.jar:\ | |
~/.m2/repository/net/minidev/json-smart/2.4.7/json-smart-2.4.7.jar:\ | |
~/.m2/repository/net/minidev/asm/1.0.2/asm-1.0.2.jar:\ | |
~/.m2/repository/org/slf4j/slf4j-api/1.7.7/slf4j-api-1.7.7.jar |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment