-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
84 lines (70 loc) · 1.81 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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
import com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar
import org.gradle.kotlin.dsl.*
import org.jetbrains.kotlin.gradle.plugin.KotlinPlatformJvmPlugin
import org.jetbrains.kotlin.gradle.plugin.KotlinPluginWrapper
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins {
kotlin("jvm") version "1.3.11"
id("com.github.johnrengelman.shadow") version "4.0.3"
}
group = "io.futz"
version = "1.0-SNAPSHOT"
repositories {
jcenter()
mavenCentral()
}
allprojects {
apply {
plugin("kotlin")
}
dependencies {
compile(kotlin("stdlib-jdk8"))
testImplementation("junit:junit:4.12")
}
}
subprojects {
apply {
plugin("com.github.johnrengelman.shadow")
}
tasks.withType<KotlinCompile> {
kotlinOptions {
jvmTarget = "1.8"
freeCompilerArgs = listOf("-Xjsr305=strict")
}
}
repositories {
jcenter()
mavenCentral()
}
}
project(":function") {
// nothing required here
}
project(":function-stack") {
dependencies {
val cdkVersion = "0.20.0"
compile("software.amazon.awscdk:cdk:$cdkVersion")
implementation("software.amazon.awscdk:iam:$cdkVersion")
implementation("software.amazon.awscdk:lambda:$cdkVersion")
implementation("software.amazon.awscdk:stepfunctions:$cdkVersion")
}
}
project(":provision") {
dependencies {
api(project(":function-stack"))
}
tasks.withType<ShadowJar> {
baseName = "app"
classifier = ""
version = ""
}
tasks.withType<Jar> {
manifest {
attributes(mapOf(
"Main-Class" to "io.futz.MyAppKt",
"Implementation-Title" to project.name,
"Implementation-Version" to project.version
))
}
}
}