-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle.kts
72 lines (63 loc) · 2.59 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
group = "org.openmbee.flexo.sysmlv2"
version = "0.0.1-ALPHA"
application {
mainClass.set("io.ktor.server.netty.EngineMain")
}
repositories {
mavenCentral()
gradlePluginPortal()
}
plugins {
application
kotlin("jvm") version "1.9.24"
kotlin("plugin.serialization") version "1.9.24"
id("com.gradleup.shadow") version "8.3.5"
}
dependencies {
implementation(kotlin("stdlib"))
val ktorVersion = "2.2.1"
implementation("io.ktor:ktor-client-core:$ktorVersion")
implementation("io.ktor:ktor-client-content-negotiation:$ktorVersion")
implementation("io.ktor:ktor-client-cio:$ktorVersion")
// implementation("io.ktor:ktor-serialization-gson:$ktorVersion")
implementation("io.ktor:ktor-serialization-kotlinx-json:$ktorVersion")
implementation("io.ktor:ktor-server-core:$ktorVersion")
implementation("io.ktor:ktor-server-auth:$ktorVersion")
// implementation("io.ktor:ktor-server-auth-jwt:$ktorVersion")
implementation("io.ktor:ktor-server-auto-head-response:$ktorVersion")
// implementation("io.ktor:ktor-server-call-logging:$ktorVersion")
implementation("io.ktor:ktor-server-compression:$ktorVersion")
// implementation("io.ktor:ktor-server-conditional-headers:$ktorVersion")
implementation("io.ktor:ktor-server-content-negotiation:$ktorVersion")
// implementation("io.ktor:ktor-server-cors:$ktorVersion")
implementation("io.ktor:ktor-server-default-headers:$ktorVersion")
// implementation("io.ktor:ktor-server-forwarded-header:$ktorVersion")
// implementation("io.ktor:ktor-server-host-common:$ktorVersion")
implementation("io.ktor:ktor-server-hsts:$ktorVersion")
// implementation("io.ktor:ktor-server-locations:$ktorVersion")
implementation("io.ktor:ktor-server-metrics:$ktorVersion")
implementation("io.ktor:ktor-server-netty:$ktorVersion")
implementation("io.ktor:ktor-server-resources:$ktorVersion")
// implementation("io.ktor:ktor-server-status-pages:$ktorVersion")
testImplementation("io.ktor:ktor-server-tests:$ktorVersion")
implementation("ch.qos.logback:logback-classic:1.2.9")
implementation("io.dropwizard.metrics:metrics-core:4.1.18")
testImplementation("junit:junit:4.13.2")
}
tasks.wrapper {
gradleVersion = "8.10.2"
distributionType = Wrapper.DistributionType.ALL
}
tasks.shadowJar {
archiveBaseName.set("flexo-sysmlv2")
archiveClassifier.set("")
archiveVersion.set("")
}
java {
toolchain.languageVersion.set(JavaLanguageVersion.of(17))
}
tasks.withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile>().configureEach {
kotlinOptions {
jvmTarget = "17"
}
}