Created
April 5, 2016 12:04
-
-
Save rtacconi/f21a7c6b53d1defeadf2554fea046991 to your computer and use it in GitHub Desktop.
Gradle build of JRuby and AWS lambda
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
apply plugin: 'java' | |
apply plugin: 'eclipse' | |
apply plugin: 'idea' | |
buildscript { | |
repositories { jcenter() } | |
dependencies { | |
/* check jruby-gradle.org for the latest release */ | |
classpath "com.github.jruby-gradle:jruby-gradle-jar-plugin:1.0.1" | |
} | |
} | |
apply plugin: 'com.github.jruby-gradle.jar' | |
jrubyJar { | |
initScript library() | |
} | |
dependencies { | |
gems 'rubygems:aws-sdk:2.2.31' | |
gems 'rubygems:aws-sdk-core:2.2.31' | |
gems 'rubygems:aws-sdk-resources:2.2.31' | |
} | |
repositories { | |
mavenCentral() | |
} | |
dependencies { | |
compile ( | |
'com.amazonaws:aws-lambda-java-core:1.0.0', | |
'com.amazonaws:aws-lambda-java-events:1.0.0', | |
'com.google.code.gson:gson:2.3.1', | |
) | |
compile files('lib/jruby.jar') | |
} | |
task buildZip(type: Zip) { | |
from compileJava | |
from processResources | |
into('lib') { | |
from configurations.runtime | |
} | |
} | |
build.dependsOn buildZip |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment