Skip to content

Instantly share code, notes, and snippets.

@amiracam
Created November 5, 2017 09:56
Show Gist options
  • Save amiracam/b1881fd34b60dfee93a50581e6b49666 to your computer and use it in GitHub Desktop.
Save amiracam/b1881fd34b60dfee93a50581e6b49666 to your computer and use it in GitHub Desktop.
full build file for JrubyRatpack3 project
buildscript {
repositories {
mavenCentral()
jcenter()
}
dependencies {
// classpath 'org.apache.ant:ant:1.10.1'
classpath 'io.ratpack:ratpack-gradle:1.5.0'
classpath "com.github.jruby-gradle:jruby-gradle-plugin:1.5.0"
classpath "com.github.jruby-gradle:jruby-gradle-jar-plugin:1.5.0"
classpath 'org.apache.ant:ant:1.10.1'
classpath "com.github.jengelman.gradle.plugins:shadow:2.0.1"
}
}
apply plugin: "io.ratpack.ratpack-java"
apply plugin: "idea"
apply plugin: "com.github.johnrengelman.shadow"
apply plugin: "java"
apply plugin: "com.github.jruby-gradle.jar"
repositories {
jcenter()
}
dependencies {
compile "io.ratpack:ratpack-base:1.5.0"
runtime "org.slf4j:slf4j-simple:1.7.25"
}
task install(type: Copy) {
dependsOn build
from configurations.runtime
from jar
into "${project.projectDir}/script/lib"
}
task copyRuntimeLibs(type: Copy) {
into "lib"
from configurations.runtime
}
jrubyJar {
/* We want to use this Ruby script as our start point when the jar executes
*/
initScript "${projectDir}/src/main/java/server.rb"
}
//mainClassName = "my.app.Main"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment