Created
July 25, 2012 07:39
-
-
Save akiellor/3174948 to your computer and use it in GitHub Desktop.
Sample Gradle Project using GemJars
This file contains hidden or 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
repositories { | |
ivy { | |
ivyPattern "http://repository.gemjars.org/ivys/[organisation]/ivy-[module]-[revision].xml" | |
artifactPattern "http://repository.gemjars.org/jars/[organisation]/[module]-[revision].jar" | |
} | |
} | |
configurations { | |
rspec.extendsFrom runtime | |
} | |
sourceSets { | |
test { | |
resources 'src/test/ruby' | |
} | |
} | |
dependencies { | |
rspec 'org.jruby:jruby-complete:1.6.7.2' | |
rspec 'org.rubygems:rspec:2.10.0' | |
} | |
task(spec, type: JavaExec) { | |
main 'org.jruby.Main' | |
classpath configurations.rspec | |
args 'classpath:bin/rspec', sourceSets.test.resources | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment