Better classpath detection and remove the needs of Java options#9
Better classpath detection and remove the needs of Java options#9mrsarm wants to merge 3 commits intobitterfox:masterfrom
Conversation
…path logging - Add dependsOn 'classes' only if the task is registered, otherwise let the task without dependencies and warn that the project need to be compiled first (multi-modules projects may not have the :classes task available) - Takes classpath paths from project and subprojects if exist. Also use `JavaExec` instead of `JavaCompile` to scan not just the "implementation" dependencies (or "compile") but also scan the "runtimeOnly" dependencies (or "runtime") - Add some logging - Remove unused imports
…e internal class `JShellToolProvider` - The change allows to avoid the need to use special java options to run the task - Improvements in README doc
|
Hi @bitterfox , did you have the chance to check my PR? Is there something you think need to be fixed first? |
|
I would love to see this merged. #6 is currently blocking me from using this plugin. |
|
@vbrandl I made a fork a few weeks ago with the patch and other improvements, and is also published in the Gradle plugins center: https://github.com/mrsarm/jshell-plugin |
|
@mrsarm thanks for the heads up. I'll look into it at work on Monday. |
|
Hi, @mrsarm I'd like to mention/introduce your fork in README, but may I? Also please tell me how should I handle this PR. I'm welcome to merge this, but I think your code is already used in your fork. Again, thank you for your contribution and great forks and I really apologize for your inconvenience. |
|
Hi @bitterfox , thanks for your comments !
Sure, please do.
Yes, if you plan to not maintain this repo anymore there is no need to merge it. Furthermore, in the v1.1.0 of my fork I added changes not reflected here. The most important change is how the task is registered in Gradle, the old way made the plugin not working well with Java 12+. |
JavaShellToolBuilderto create the jshell console instead of the internal classJShellToolProviderJavaExecinstead ofJavaCompileto scan not just the "implementation" dependencies (or "compile") but also scan the "runtimeOnly" dependencies (or "runtime")