Skip to content

Instantly share code, notes, and snippets.

@satr
Created June 9, 2019 05:34
Show Gist options
  • Save satr/69943d108801a4fddcfccc2b88cdadd7 to your computer and use it in GitHub Desktop.
Save satr/69943d108801a4fddcfccc2b88cdadd7 to your computer and use it in GitHub Desktop.
Dependencies and jar-task in build.gradle for AWS Lambda function on Java for Amazon Alexa Skill
dependencies {
testCompile group: 'junit', name: 'junit', version: '4.12'
compile group: 'com.amazon.alexa', name: 'ask-sdk', version:'2.17.2'
compile group: 'com.amazonaws', name: 'aws-lambda-java-log4j2', version:'1.1.0'
}
jar {
from {
configurations.compile.collect { it.isDirectory() ? it : zipTree(it) }
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment