Skip to content

Instantly share code, notes, and snippets.

@mkristian
Last active August 29, 2015 14:21
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/f07c9d5d6dc47b2842c3 to your computer and use it in GitHub Desktop.
Save mkristian/f07c9d5d6dc47b2842c3 to your computer and use it in GitHub Desktop.
buildscript {
repositories {
jcenter()
maven { url '/usr/local/repository' }
}
dependencies {
classpath group: 'com.github.jruby-gradle', name: 'jruby-gradle-jar-plugin', version: '0.1.4-SNAPSHOT'
classpath group: 'com.github.jruby-gradle', name: 'jruby-gradle-plugin', version: '0.1.17-SNAPSHOT'
}
}
apply plugin: 'com.github.jruby-gradle.jar'
apply plugin: 'java'
import com.github.jrubygradle.jar.JRubyJar
task executable( type: JRubyJar ) {
from "."
include 'Rakefile'
jruby {
initScript 'blablabla.rb'
}
}
task runnable( type: JRubyJar ) {
from "."
include 'Rakefile'
include 'bla.rb'
appendix 'runnable'
jruby {
initScript runnable()
}
}
jar {
jruby {
defaultGems()
}
from "."
include 'Rakefile'
include 'blabla.rb'
}
dependencies {
gems 'com.readytalk:metrics3-statsd:4.1.0'
gems group: 'rubygems', name: 'leafy-complete', version: '0.3.1'
gems group: 'rubygems', name: 'rake', version: '10.3.+'
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment