Created
August 25, 2015 18:11
-
-
Save mkristian/2f8fa53e3cb552c428dc to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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