Skip to content

Instantly share code, notes, and snippets.

@akiellor
Created July 25, 2012 07:39
Show Gist options
  • Save akiellor/3174948 to your computer and use it in GitHub Desktop.
Save akiellor/3174948 to your computer and use it in GitHub Desktop.
Sample Gradle Project using GemJars
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