-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
65 lines (53 loc) · 2.28 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
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
val awsDynamoSdkVersion: String by project
val jacksonVersion: String by project
val joobyVersion: String by project
val jUnitVersion: String by project
val kotlinVersion: String by project
val mockkVersion: String by project
val restAssuredVersion: String by project
plugins {
application
kotlin("jvm") version "1.4.10"
id("io.jooby.run") version "2.9.4"
id("com.github.johnrengelman.shadow") version "5.2.0"
id("org.jmailen.kotlinter") version "3.3.0"
}
group = "me.vitdebacco"
version = "1.0-SNAPSHOT"
repositories {
mavenCentral()
}
application {
mainClassName = "com.example.kotlinddb.AppKt"
}
dependencies {
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.4.2")
implementation("io.jooby:jooby-netty:$joobyVersion")
implementation("io.jooby:jooby-jackson:$joobyVersion")
implementation("ch.qos.logback:logback-classic:1.2.3")
// https://medium.com/better-programming/aws-java-sdk-v2-dynamodb-enhanced-client-with-kotlin-spring-boot-application-f880c74193a2
// implementation("software.amazon.awssdk:dynamodb-enhanced:$awsDynamoSdkVersion")
implementation("software.amazon.awssdk:dynamodb:$awsDynamoSdkVersion")
// Jackson modules for serialization & deserialization
implementation("com.fasterxml.jackson.module:jackson-module-kotlin:$jacksonVersion")
// The JSR310 dependency is required to properly serializing and deserializing Java 8 date & time objects
implementation("com.fasterxml.jackson.datatype:jackson-datatype-jsr310:$jacksonVersion")
testImplementation("io.rest-assured:rest-assured:$restAssuredVersion")
testImplementation("io.rest-assured:kotlin-extensions:$restAssuredVersion")
testImplementation(kotlin("test-junit5"))
testImplementation("org.junit.jupiter:junit-jupiter-api:$jUnitVersion")
testImplementation("io.jooby:jooby-test:$joobyVersion")
testImplementation("io.mockk:mockk:$mockkVersion")
testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine:$jUnitVersion")
}
tasks.withType<Test> {
useJUnitPlatform()
// Show results for tests. Default behavior only reports failures.
testLogging {
events("passed", "skipped", "failed")
}
}
tasks.withType<KotlinCompile>() {
kotlinOptions.jvmTarget = "1.8"
}