-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle.kts
More file actions
73 lines (59 loc) · 2.23 KB
/
build.gradle.kts
File metadata and controls
73 lines (59 loc) · 2.23 KB
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
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins {
kotlin("jvm") version "1.4.31"
application
id("com.squareup.sqldelight") version "1.4.4"
kotlin("plugin.serialization") version "1.4.31"
}
group = "com.github.softwareengineeringclub"
version = "1.0"
repositories {
jcenter()
mavenCentral()
maven { url = uri("https://dl.bintray.com/kotlin/kotlinx") }
maven { url = uri("https://dl.bintray.com/kotlin/ktor") }
maven { url = uri("https://jitpack.io") }
}
dependencies {
// Testing Dependencies (unused)
testImplementation(kotlin("test-junit5"))
testImplementation("org.junit.jupiter:junit-jupiter-api:5.6.0")
testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine:5.6.0")
// Coroutines for Async Work
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.4.3")
// Ktor Webserver Dependencies
val ktorVersion = "1.4.0"
implementation("io.ktor:ktor-server-netty:1.4.0")
implementation("org.jetbrains.kotlinx:kotlinx-html-jvm:0.7.2")
implementation("io.ktor:ktor-websockets:$ktorVersion")
implementation("io.ktor:ktor-html-builder:$ktorVersion")
implementation("io.ktor:ktor-auth:$ktorVersion")
implementation("io.ktor:ktor-serialization:$ktorVersion")
implementation("io.ktor:ktor-locations:$ktorVersion")
implementation("org.slf4j:slf4j-simple:2.0.0-alpha1")
// JSON Serializer for returning objects to the user
implementation("org.jetbrains.kotlinx:kotlinx-serialization-json:1.1.0")
// BCrypt Password Hasher/Encrypter
implementation("com.ToxicBakery.library.bcrypt:bcrypt:+")
// SQLite JDBC Driver
implementation("com.zaxxer:HikariCP:4.0.3")
implementation("org.postgresql:postgresql:42.2.19.jre7")
implementation("com.squareup.sqldelight:jdbc-driver:1.4.4")
implementation("com.squareup.sqldelight:sqlite-driver:1.4.4")
implementation("com.squareup.sqldelight:coroutines-extensions-jvm:1.4.4")
}
sqldelight {
database("Database") {
packageName = "com.github.softwareengineeringclub.database"
dialect = "postgresql"
}
}
tasks.test {
useJUnitPlatform()
}
tasks.withType<KotlinCompile>() {
kotlinOptions.jvmTarget = "1.8"
}
application {
mainClassName = "ServerKt"
}