Skip to content

Instantly share code, notes, and snippets.

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/2f8fa53e3cb552c428dc to your computer and use it in GitHub Desktop.
Save mkristian/2f8fa53e3cb552c428dc to your computer and use it in GitHub Desktop.
import com.github.jrubygradle.JRubyExec
buildscript {
repositories {
jcenter()
mavenLocal()
}
dependencies {
classpath 'com.github.jruby-gradle:jruby-gradle-plugin:1.0.2'
//classpath 'com.github.jruby-gradle:jruby-gradle-plugin:%%VERSION%%'
}
}
apply plugin : 'com.github.jruby-gradle.base'
repositories {
jcenter()
rubygems("https://rubygems.org")
}
dependencies {
jrubyExec 'rubygems:credit_card_validator:1.1.0'
}
jruby {
defaultRepositories = false
}
task requiresGems( type : JRubyExec ) {
jrubyArgs '-rcredit_card_validator', '-e', 'puts "hello";p Gem.loaded_specs'
}
task runGradleTest {
dependsOn requiresGems
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment