-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle.kts
83 lines (66 loc) · 1.97 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
plugins {
`java-library`
maven
idea
kotlin("jvm") version "1.3.60"
id("com.adarshr.test-logger") version "1.7.0"
}
group = "se.davison.aws.lambda.customruntime"
version = "1.0-SNAPSHOT"
repositories {
mavenCentral()
maven {
url = uri("https://dl.bintray.com/spekframework/spek")
}
}
//kotlin
val kotlinVersion = "1.3.60"
//deps
val awsLambdaCoreVersion = "1.2.0"
val awsLambdaEventsVersion = "2.2.7"
val gsonVersion = "2.8.5"
//tests
val junitPlatformVersion = "1.5.0"
val spekVersion = "2.0.5"
dependencies {
implementation(kotlin("stdlib-jdk8"))
api("com.google.code.gson:gson:$gsonVersion")
api("com.amazonaws:aws-lambda-java-events:$awsLambdaEventsVersion")
api("com.amazonaws:aws-lambda-java-core:$awsLambdaCoreVersion")
testImplementation(kotlin("reflect", kotlinVersion))
testImplementation(kotlin("test", kotlinVersion))
testImplementation("org.spekframework.spek2:spek-dsl-jvm:$spekVersion") {
exclude(group = "org.jetbrains.kotlin")
}
testRuntimeOnly("org.spekframework.spek2:spek-runner-junit5:$spekVersion") {
exclude(group = "org.jetbrains.kotlin")
exclude(group = "org.junit.platform")
}
testRuntimeOnly("org.junit.platform:junit-platform-launcher:$junitPlatformVersion") {
because("Needed to run tests IDEs that bundle an older version")
}
testImplementation(gradleTestKit())
}
tasks.withType<Test> {
useJUnitPlatform {
includeEngines("spek2")
}
}
tasks.withType<Jar> {
manifest {
attributes(
mapOf(
"Implementation-Title" to "Serverless",
"Implementation-Version" to project.version,
"Main-Class" to "se.davison.aws.lambda.customruntime.MainKt"
)
)
}
}
testlogger {
showStandardStreams = true
//theme = ThemeType.MOCHA
}
configure<JavaPluginConvention> {
sourceCompatibility = JavaVersion.VERSION_1_8
}