-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle
60 lines (48 loc) · 1.87 KB
/
build.gradle
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
apply plugin: 'java'
apply plugin: 'maven'
group = 'com.serverless'
version = 'dev'
description = """hello"""
sourceCompatibility = 1.5
targetCompatibility = 1.5
tasks.withType(JavaCompile) {
options.encoding = 'UTF-8'
}
buildscript {
repositories {
mavenCentral()
maven { url "https://plugins.gradle.org/m2/" }
}
dependencies {
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:1.1.51"
classpath "io.spring.gradle:dependency-management-plugin:1.0.3.RELEASE"
classpath "com.github.jengelman.gradle.plugins:shadow:2.0.1"
classpath "de.sebastianboegl.gradle.plugins:shadow-log4j-transformer:2.1.1"
}
}
apply plugin: 'kotlin'
apply plugin: "io.spring.dependency-management"
apply plugin: 'com.github.johnrengelman.shadow'
apply plugin: "de.sebastianboegl.shadow.transformer.log4j"
repositories {
maven { url "http://repo.maven.apache.org/maven2" }
}
// If requiring AWS JDK, uncomment the dependencyManagement to use the bill of materials
// https://aws.amazon.com/blogs/developer/managing-dependencies-with-aws-sdk-for-java-bill-of-materials-module-bom/
//dependencyManagement {
// imports {
// mavenBom 'com.amazonaws:aws-java-sdk-bom:1.11.206'
// }
//}
dependencies {
compile group: 'org.jetbrains.kotlin', name: 'kotlin-stdlib', version: '1.1.51'
compile group: 'com.amazonaws', name: 'aws-lambda-java-core', version:'1.1.0'
compile group: 'com.amazonaws', name: 'aws-lambda-java-log4j2', version:'1.0.0'
compile group: 'com.amazonaws', name: 'aws-lambda-java-events', version:'2.0.1'
compile group: 'com.fasterxml.jackson.core', name: 'jackson-core', version:'2.8.5'
compile group: 'com.fasterxml.jackson.core', name: 'jackson-databind', version:'2.8.5'
compile group: 'com.fasterxml.jackson.core', name: 'jackson-annotations', version:'2.8.5'
}
task deploy(type: Exec, dependsOn: 'shadowJar') {
commandLine 'serverless', 'deploy'
}