Skip to content

Instantly share code, notes, and snippets.

@nawada
Created March 8, 2022 17:17
Show Gist options
  • Save nawada/5b84fd482750282958cca8c5a23f2f84 to your computer and use it in GitHub Desktop.
Save nawada/5b84fd482750282958cca8c5a23f2f84 to your computer and use it in GitHub Desktop.
task showClassPaths(type: Exec) {
def classFiles = []
configurations.compileClasspath.each { classFiles.add(it.toString()) }
def classPaths = classFiles.collect { "--class-path ${it}" }.join(" ")
executable "bash"
args "-c", "echo 'jshell ${classPaths}'"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment