-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.gradle
74 lines (63 loc) · 1.34 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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
buildscript {
ext.kotlin_version = '1.2.30'
}
plugins {
id 'org.jetbrains.kotlin.jvm' version '1.2.30'
}
apply plugin: 'java'
apply plugin: 'kotlin'
apply plugin: 'idea'
repositories {
mavenCentral()
jcenter()
}
dependencies {
compile(
'org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.2.30',
'org.jetbrains.kotlin:kotlin-reflect:1.2.30',
'org.jetbrains.kotlinx:kotlinx-coroutines-core:0.22.5',
'com.fasterxml.jackson.module:jackson-module-kotlin:2.9.3',
'com.amazonaws:aws-lambda-java-core:1.1.0',
'com.amazonaws:aws-lambda-java-events:1.1.0',
'com.amazonaws:aws-java-sdk:1.11.275'
)
}
kotlin {
experimental {
coroutines "enable"
}
}
compileKotlin {
kotlinOptions {
jvmTarget = "1.8"
}
}
compileTestKotlin {
kotlinOptions {
jvmTarget = "1.8"
}
}
idea {
module {
downloadJavadoc = true
downloadSources = true
}
}
task buildZip(type: Zip) {
from compileJava
from compileKotlin
from processResources
into('lib') {
from configurations.runtime
}
}
task buildDocker(type: Copy) {
from compileJava
from compileKotlin
from processResources
into('lib') {
from configurations.runtime
}
into 'build/docker'
}
build.dependsOn buildDocker