{"action":"created","issue":{"url":"https://api.github.com/repos/jruby-gradle/jruby-gradle-plugin/issues/103","labels_url":"https://api.github.com/repos/jruby-gradle/jruby-gradle-plugin/issues/103/labels{/name}","comments_url":"https://api.github.com/repos/jruby-gradle/jruby-gradle-plugin/issues/103/comments","events_url":"https://api.github.com/repos/jruby-gradle/jruby-gradle-plugin/issues/103/events","html_url":"https://github.com/jruby-gradle/jruby-gradle-plugin/issues/103","id":65084808,"number":103,"title":"Is it possible to \"execute a gem\"?","user":{"login":"Dispader","id":2664155,"avatar_url":"https://avatars.githubusercontent.com/u/2664155?v=3","gravatar_id":"","url":"https://api.github.com/users/Dispader","html_url":"https://github.com/Dispader","followers_url":"https://api.github.com/users/Dispader/followers","following_url":"https://api.github.com/users/Dispader/following{/other_user}","gists_url":"https://api.github.com/users/Dispader/gists{/gist_id}","starred_url":"https://api.github.com/users/Dispader/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Dispader/subscriptions","organizations_url":"https://api.github.com/users/Dispader/orgs","repos_url":"https://api.github.com/users/Dispader/repos","events_url":"https://api.github.com/users/Dispader/events{/privacy}","received_events_url":"https://api.github.com/users/Dispader/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/jruby-gradle/jruby-gradle-plugin/labels/question","name":"question","color":"cc317c"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-03-29T18:47:45Z","updated_at":"2015-03-29T20:46:28Z","closed_at":null,"body":"Hey there,\r\n\r\n  I'm really sorry to trouble— this is probably a very rudimentary question.\r\n\r\n  I have a project that has a `Gemfile` (with the `guard-gradle` gem defined), and I'm currently using `bundle`, `bundle exec guard` to \"execute the gem.\"  I can't say that I know how bundler performs the execution, though.\r\n\r\n  I've added the plugin and successfully resolved the dependencies, but I can't seem to find a way to execute the installed Gem— I've tried using the `JRubyExec` task type, but it seems to very much want a script (which makes sense).\r\n\r\n  Is it possible to use the plugin's gem resolution, but \"execute\" a gem directly from a task?\r\n\r\n  Sorry again to trouble— and thank you for the wonderful project."},"comment":{"url":"https://api.github.com/repos/jruby-gradle/jruby-gradle-plugin/issues/comments/87473862","html_url":"https://github.com/jruby-gradle/jruby-gradle-plugin/issues/103#issuecomment-87473862","issue_url":"https://api.github.com/repos/jruby-gradle/jruby-gradle-plugin/issues/103","id":87473862,"user":{"login":"ysb33r","id":907624,"avatar_url":"https://avatars.githubusercontent.com/u/907624?v=3","gravatar_id":"","url":"https://api.github.com/users/ysb33r","html_url":"https://github.com/ysb33r","followers_url":"https://api.github.com/users/ysb33r/followers","following_url":"https://api.github.com/users/ysb33r/following{/other_user}","gists_url":"https://api.github.com/users/ysb33r/gists{/gist_id}","starred_url":"https://api.github.com/users/ysb33r/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ysb33r/subscriptions","organizations_url":"https://api.github.com/users/ysb33r/orgs","repos_url":"https://api.github.com/users/ysb33r/repos","events_url":"https://api.github.com/users/ysb33r/events{/privacy}","received_events_url":"https://api.github.com/users/ysb33r/received_events","type":"User","site_admin":false},"created_at":"2015-03-29T20:46:28Z","updated_at":"2015-03-29T20:46:28Z","body":"OK, I've played a bit with `guard-gradle` and asis the above won't work. One reason is that that `guard-gradle` does nto have a `bin` folder and secondly for `guard-gradle` to work you need to do additional setup work i.e. run the `installer.sh` script.\r\n\r\nThe problem is that the default script will try to `gem install` to your standard GEM installation folder, something which we try to avoid within the plugin with good reason.\r\n\r\nI am just not even sure running it from Gradle will work correctly (even if you set `scriptArgs \"${gemInstallDir}/guard-gradle-0.5/0/lib/gradle.rb\"`). You are effectively creating a watcher which I am not sure will survive a Gradle exit."}}