-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle.kts
102 lines (79 loc) · 3.02 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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
val kotlinVersion = "1.5.32" // keep in sync with plugin version
val ktorVersion = "1.6.7"
val logbackVersion = "1.2.5"
val jdbiVersion = "3.14.4"
plugins {
kotlin("jvm") version "1.5.32"
id("org.jlleitschuh.gradle.ktlint") version "10.2.1"
application
}
group = "sh.zachwal"
repositories {
mavenCentral()
}
dependencies {
// Align versions of all Kotlin components
implementation(platform("org.jetbrains.kotlin:kotlin-bom"))
implementation(platform("org.jdbi:jdbi3-bom:$jdbiVersion"))
// Use the Kotlin JDK 8 standard library.
implementation("org.jetbrains.kotlin:kotlin-stdlib-jdk8")
implementation("org.jetbrains.kotlin:kotlin-reflect")
// Ktor
implementation("io.ktor:ktor-server-core:$ktorVersion")
implementation("io.ktor:ktor-server-netty:$ktorVersion")
implementation("io.ktor:ktor-html-builder:$ktorVersion")
implementation("io.ktor:ktor-server-sessions:$ktorVersion")
implementation("io.ktor:ktor-websockets:$ktorVersion")
implementation("io.ktor:ktor-auth:$ktorVersion")
implementation("io.ktor:ktor-auth-jwt:$ktorVersion")
implementation("io.ktor:ktor-jackson:$ktorVersion")
implementation("org.jetbrains.kotlinx:kotlinx-html-jvm:0.7.2")
implementation("org.jetbrains.kotlin-wrappers:kotlin-css-jvm:1.0.0-pre.265-kotlin-1.5.31")
// Logging
implementation("ch.qos.logback:logback-classic:$logbackVersion")
// Observability
implementation("io.sentry:sentry:6.17.0")
// Reflection (for @Controller annotation inspection)
implementation("org.reflections:reflections:0.10.2")
// database
implementation("com.zaxxer:HikariCP:3.4.5")
implementation("org.postgresql:postgresql:42.1.4")
implementation("org.jdbi:jdbi3-core")
implementation("org.jdbi:jdbi3-kotlin")
implementation("org.jdbi:jdbi3-postgres")
implementation("org.jdbi:jdbi3-kotlin-sqlobject")
// passwords
implementation("org.mindrot:jbcrypt:0.4")
// DI
implementation("com.google.inject:guice:4.2.3")
// Twilio
implementation("com.twilio.sdk:twilio:8.32.0")
// CSV
implementation("com.opencsv:opencsv:5.9")
// Use the Kotlin test library.
testImplementation(kotlin("test"))
testImplementation("org.junit.jupiter:junit-jupiter-params:5.9.3")
// For testing Ktor & websockets
testImplementation("io.ktor:ktor-client-core:$ktorVersion")
testImplementation("io.ktor:ktor-client-cio:$ktorVersion")
testImplementation("io.ktor:ktor-client-websockets:$ktorVersion")
testImplementation("io.ktor:ktor-server-tests:$ktorVersion")
testImplementation("io.mockk:mockk:1.12.3")
testImplementation("com.google.truth:truth:1.1.3")
}
application {
// Define the main class for the application.
mainClass.set("sh.zachwal.button.AppKt")
}
tasks.withType(KotlinCompile::class.java).all {
kotlinOptions {
jvmTarget = "1.8"
}
}
tasks.test {
useJUnitPlatform()
}
subprojects {
apply(plugin = "org.jlleitschuh.gradle.ktlint")
}