This repository has been archived by the owner on Jan 9, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle.kts
138 lines (109 loc) · 5.08 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
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins {
kotlin("jvm") version "1.9.10"
id("io.ktor.plugin") version "2.3.4"
id("org.jetbrains.kotlin.plugin.serialization") version "1.9.10"
id("com.github.ben-manes.versions") version "0.48.0"
}
group = "id.walt"
version = "0.0.1"
application {
mainClass.set("id.walt.ApplicationKt")
val isDevelopment: Boolean = project.ext.has("development")
applicationDefaultJvmArgs = listOf("-Dio.ktor.development=$isDevelopment")
}
repositories {
//mavenLocal()
mavenCentral()
maven("https://jitpack.io")
maven("https://maven.walt.id/repository/waltid/")
maven("https://maven.walt.id/repository/waltid-ssi-kit/")
//maven("https://repo.danubetech.com/repository/maven-public/")
}
tasks.withType<KotlinCompile> {
kotlinOptions.jvmTarget = "17"
}
dependencies {
// nftkit
implementation("id.walt:waltid-nftkit:1.2310191239.0") {
exclude("com.sksamuel.hoplite", "hoplite-core")
exclude("com.sksamuel.hoplite", "hoplite-yaml")
exclude("com.sksamuel.hoplite", "hoplite-hikaricp")
}
/* -- KTOR -- */
val ktorVersion = "2.3.5"
// Ktor server
implementation("io.ktor:ktor-server-core-jvm:$ktorVersion")
implementation("io.ktor:ktor-server-auth-jvm:$ktorVersion")
implementation("io.ktor:ktor-server-sessions-jvm:$ktorVersion")
implementation("io.ktor:ktor-server-auth-jwt-jvm:$ktorVersion")
implementation("io.ktor:ktor-server-auto-head-response-jvm:$ktorVersion")
implementation("io.ktor:ktor-server-double-receive-jvm:$ktorVersion")
implementation("io.ktor:ktor-server-host-common-jvm:$ktorVersion")
implementation("io.ktor:ktor-server-status-pages-jvm:$ktorVersion")
implementation("io.ktor:ktor-server-compression-jvm:$ktorVersion")
implementation("io.ktor:ktor-server-cors-jvm:$ktorVersion")
implementation("io.ktor:ktor-server-forwarded-header-jvm:$ktorVersion")
implementation("io.ktor:ktor-server-call-logging-jvm:$ktorVersion")
implementation("io.ktor:ktor-server-call-id-jvm:$ktorVersion")
implementation("io.ktor:ktor-server-content-negotiation-jvm:$ktorVersion")
implementation("io.ktor:ktor-server-cio-jvm:$ktorVersion")
// Ktor server external libs
implementation("io.github.smiley4:ktor-swagger-ui:2.5.0")
//implementation("io.github.microutils:kotlin-logging-jvm:2.1.23")
// Ktor client
implementation("io.ktor:ktor-client-core-jvm:$ktorVersion")
implementation("io.ktor:ktor-client-serialization-jvm:$ktorVersion")
implementation("io.ktor:ktor-client-content-negotiation:$ktorVersion")
implementation("io.ktor:ktor-client-json-jvm:$ktorVersion")
implementation("io.ktor:ktor-client-cio-jvm:$ktorVersion")
implementation("io.ktor:ktor-client-logging-jvm:$ktorVersion")
implementation("io.ktor:ktor-client-cio-jvm:$ktorVersion")
/* -- Kotlin -- */
// Kotlinx.serialization
implementation("io.ktor:ktor-serialization-kotlinx-json:$ktorVersion")
// Date
implementation("org.jetbrains.kotlinx:kotlinx-datetime:0.4.1")
// Coroutines
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.7.3")
/* -- Security -- */
// Bouncy Castle
implementation("org.bouncycastle:bcprov-jdk18on:1.76")
// Argon2
implementation("de.mkammerer:argon2-jvm:2.11")
// waltid-did
implementation("id.walt.did:waltid-did:1.0.1")//id.walt.crypto provided by id.walt.did:waltid-did
// OIDC
implementation("id.walt:waltid-openid4vc:1.2310051536.0")
/* -- Misc --*/
// Cache
implementation("io.github.reactivecircus.cache4k:cache4k:0.11.0")
// DB
implementation("org.jetbrains.exposed:exposed-core:0.44.0")
implementation("org.jetbrains.exposed:exposed-jdbc:0.44.0")
implementation("org.jetbrains.exposed:exposed-dao:0.44.0")
implementation("org.jetbrains.exposed:exposed-java-time:0.44.0")
implementation("org.jetbrains.exposed:exposed-json:0.44.0")
implementation("org.xerial:sqlite-jdbc:3.42.0.0")
implementation("org.postgresql:postgresql:42.6.0")
// migration
implementation("org.flywaydb:flyway-core:9.22.2")
// Web push
implementation("nl.martijndwars:web-push:5.1.1") // todo: replace with https://github.com/interaso/webpush
// Config
implementation("com.sksamuel.hoplite:hoplite-core:2.8.0.RC3")
implementation("com.sksamuel.hoplite:hoplite-hocon:2.8.0.RC3")
implementation("com.sksamuel.hoplite:hoplite-yaml:2.8.0.RC3")
implementation("com.sksamuel.hoplite:hoplite-hikaricp:2.8.0.RC3")
implementation("com.zaxxer:HikariCP:5.0.1")
// Logging
implementation("io.github.oshai:kotlin-logging-jvm:5.1.0")
implementation("org.slf4j:slf4j-simple:2.0.9")
implementation("org.slf4j:jul-to-slf4j:2.0.9")
// Test
testImplementation("org.jetbrains.kotlin:kotlin-test-junit:1.9.10")
/*testImplementation("io.kotest:kotest-runner-junit5:5.5.5")
testImplementation("io.kotest:kotest-assertions-core:5.5.5")
testImplementation("io.kotest.extensions:kotest-assertions-ktor:2.0.0")*/
testImplementation("io.ktor:ktor-server-tests-jvm:$ktorVersion")
}