-
-
Notifications
You must be signed in to change notification settings - Fork 11
/
build.gradle.kts
70 lines (59 loc) · 1.87 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
plugins {
kotlin("jvm")
kotlin("plugin.serialization")
id("com.google.cloud.tools.jib")
id("app.cash.licensee")
}
kotlin.target.compilations.all {
kotlinOptions {
jvmTarget = "17"
}
}
jib {
val registry: String? by project
to.image = when (registry) {
"GitHub" -> "ghcr.io/hfhbd/composetodo:$version"
"Google" -> {
val project_id: String by project
val service_name: String by project
"eu.gcr.io/$project_id/$service_name:$version"
}
else -> return@jib
}
from {
image = "eclipse-temurin:17-jre"
platforms {
platform {
architecture = "arm64"
os = "linux"
}
platform {
architecture = "amd64"
os = "linux"
}
}
}
}
dependencies {
implementation(projects.shared)
val ktor = "2.1.3"
implementation("io.ktor:ktor-server-cio:$ktor")
implementation("io.ktor:ktor-server-cors:$ktor")
implementation("io.ktor:ktor-server-auth-jwt:$ktor")
implementation("io.ktor:ktor-server-resources:$ktor")
implementation("io.ktor:ktor-server-content-negotiation:$ktor")
implementation("io.ktor:ktor-serialization-kotlinx-json:$ktor")
implementation("io.ktor:ktor-server-forwarded-header:$ktor")
implementation("app.softwork:cloudkitclient-core:0.1.0")
implementation("app.softwork:cloudkitclient-testing:0.1.0")
runtimeOnly("ch.qos.logback:logback-classic:1.4.4")
testImplementation(kotlin("test"))
testImplementation("io.ktor:ktor-server-test-host:$ktor")
}
licensee {
allow("Apache-2.0")
allow("MIT")
allow("EPL-1.0")
allowUrl("https://raw.githubusercontent.com/auth0/jwks-rsa-java/master/LICENSE") // MIT
allowUrl("https://raw.githubusercontent.com/auth0/java-jwt/master/LICENSE") // MIT
}