Skip to content

Instantly share code, notes, and snippets.

@bytekast
Created March 30, 2017 03:42
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 bytekast/709c8f9d697ecaab7c461cda43bea6cc to your computer and use it in GitHub Desktop.
Save bytekast/709c8f9d697ecaab7c461cda43bea6cc to your computer and use it in GitHub Desktop.
apply plugin: 'groovy'
repositories {
jcenter()
mavenCentral()
}
dependencies {
compile(
'org.codehaus.groovy:groovy-all:2.4.7',
'com.amazonaws:aws-lambda-java-core:1.1.0',
'com.amazonaws:aws-lambda-java-log4j:1.0.0',
'io.vertx:vertx-core:3.4.1',
'io.vertx:vertx-lang-groovy:3.4.1'
)
}
// Task for building the zip file for upload
task buildZip(type: Zip) {
baseName = "${project.name}"
from compileGroovy
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