We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 1ba53c6 + 0a55500 commit f8df4dbCopy full SHA for f8df4db
1 file changed
src/main/groovy/com/github/mrsarm/jshell/plugin/JShellPlugin.groovy
@@ -63,6 +63,10 @@ class JShellPlugin implements Plugin<Project> {
63
'the following paths from project configurations: {}', depsPaths)
64
pathSet.addAll(depsPaths)
65
}
66
+
67
+ // Exclude non-directory / non-jar files that jshell doesn't deal with
68
+ pathSet = pathSet.findAll{ new File(it.toString()).isDirectory() || it.toString().endsWith('.jar') }
69
70
def path = pathSet.join(System.getProperty("path.separator"))
71
jshellTask.logger.info(":jshell executing with --class-path {}", path)
72
shellArgs += [
0 commit comments