Skip to content

Instantly share code, notes, and snippets.

@holgerbrandl
Created June 6, 2018 08:09
Show Gist options
  • Save holgerbrandl/103cbca997b7201a072ccc303e52f9c5 to your computer and use it in GitHub Desktop.
Save holgerbrandl/103cbca997b7201a072ccc303e52f9c5 to your computer and use it in GitHub Desktop.
Launch kshell with a maven resolved classpath
#!/usr/bin/env kscript
// repl class-path
@file:DependsOn("org.apache.hadoop:hadoop-common:2.7.0")
@file:DependsOn("com.github.khud:kshell-repl-api:0.2.2-1.2.41")
@file:DependsOn("sparklin:jline3-shaded:0.2-SNAPSHOT")
@file:DependsOn("sparklin:kshell:0.2-SNAPSHOT")
// user classpath
@file:DependsOn("com.offbytwo:docopt:0.6.0.20150202","log4j:log4j:1.2.14")
println("starting kshell with custom classpath")
sparklin.kshell.KotlinShell.main(args)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment