Open ysb33r opened 8 years ago
Good suggestion. A PR is welcome, else I'll need to see when I have some time :)
Haha. I'll put in my open-source backlog, but not promising anything (yet).
@ysb33r I think this plugin does what you want: https://plugins.gradle.org/plugin/com.github.rzabini.gradle-jython
@ysb33r I think this plugin does what you want: https://plugins.gradle.org/plugin/com.github.rzabini.gradle-jython
@diogocp I've studied the source code on that one, and I spent quite a bit of time now to go through all of the code of @hierynomus' plugin. Yes, the one that @rzabini wrote can execute scripts, but what I think @hierynomus has done with module dependencies is better in that regard.
To a create extent the two plugins should be merged IMHO. I can see quite a number of use cases:
(There are also the potential caching Jython installs in ~/.gradle
and the have the packages kept in Gradle projects via virtualenv
. )
Instead of having distributed efforts maybe a concerted effort to have one place so that decent support for Jython in Gradle can be provided.
Hi @ysb33r, Sounds like a nice set of use cases. Can you make a set of issues out of these, I think most of them make sense to add in the coming time.
Thanks!
It would be nice to have a
PythonExec
task type similar to theJRubyExec
one in the jruby-gradle plugins. This can be used to execute python scripts within the JVM.