-
Notifications
You must be signed in to change notification settings - Fork 2
/
build.gradle.kts
56 lines (44 loc) · 1.31 KB
/
build.gradle.kts
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
import com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
import java.nio.file.Files.copy
import java.nio.file.Paths.get
import java.nio.file.StandardCopyOption.REPLACE_EXISTING
plugins {
kotlin("jvm") version "1.3.10"
application
id("com.github.johnrengelman.shadow") version "4.0.3"
}
group = "io.futz"
version = "1.0-SNAPSHOT"
repositories {
mavenCentral()
}
val cdkVersion = "0.19.0"
val sdkVersion = "2.1.3"
dependencies {
compile(kotlin("stdlib-jdk8"))
// cdk
implementation("software.amazon.awscdk:cdk:${cdkVersion}")
implementation("software.amazon.awscdk:iam:${cdkVersion}")
implementation("software.amazon.awscdk:lambda:${cdkVersion}")
implementation("software.amazon.awscdk:s3:${cdkVersion}")
implementation("software.amazon.awscdk:stepfunctions:${cdkVersion}")
// sdk
implementation("software.amazon.awssdk:lambda:${sdkVersion}")
// test
testImplementation("junit:junit:4.12")
}
tasks.withType<KotlinCompile> {
kotlinOptions.jvmTarget = "1.8"
}
application {
mainClassName = "io.futz.MyAppKt"
}
tasks.withType<ShadowJar> {
baseName = "app"
classifier = ""
version = ""
doLast {
copy(get("build/libs/app.jar"), get("build/libs/app.zip"), REPLACE_EXISTING)
}
}