Skip to content

Instantly share code, notes, and snippets.

@mkristian
Created November 13, 2015 17:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mkristian/92777ae6ad9981687130 to your computer and use it in GitHub Desktop.
Save mkristian/92777ae6ad9981687130 to your computer and use it in GitHub Desktop.
buildscript {
repositories {
jcenter()
}
dependencies {
classpath "com.github.jruby-gradle:jruby-gradle-jar-plugin:1.1.4"
}
}
apply plugin: 'com.github.jruby-gradle.base'
apply plugin: 'com.github.jruby-gradle.jar'
repositories {
jcenter()
}
dependencies {
jrubyJar 'rubygems:rake:10.4.2'
}
configurations {
jrubyExec.extendsFrom jrubyJar
}
jrubyJar {
from('.') { include 'Rakefile' }
}
import com.github.jrubygradle.JRubyExec
task doIt(type: JRubyExec) {
jrubyArgs "-e", "require 'rake';p Gem.loaded_specs['rake']"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment