|
1 | | -val ktorVersion = "3.2.3" |
2 | | -val exposedVersion = "0.61.0" |
3 | | -val h2Version = "2.3.232" |
4 | | -val hikariCpVersion = "6.2.1" |
5 | | -val flywayVersion = "11.9.1" |
6 | | -val logbackVersion = "1.5.17" |
7 | | -val assertjVersion = "3.27.3" |
8 | | -val restAssuredVersion = "5.5.6" |
9 | | -val junitVersion = "5.13.4" |
10 | | - |
11 | 1 | plugins { |
12 | | - kotlin("jvm") version "2.2.0" |
13 | | - kotlin("plugin.serialization") version "2.2.0" |
14 | | - id("org.jetbrains.kotlinx.kover") version "0.9.1" |
15 | | - application |
| 2 | + alias(libs.plugins.kotlin.jvm) |
| 3 | + alias(libs.plugins.ktor) |
| 4 | + alias(libs.plugins.kotlin.plugin.serialization) |
| 5 | + alias(libs.plugins.kover) |
16 | 6 | } |
17 | 7 |
|
18 | 8 | repositories { |
19 | 9 | mavenCentral() |
20 | 10 | } |
21 | 11 |
|
22 | 12 | dependencies { |
23 | | - implementation("io.ktor:ktor-server-core:$ktorVersion") |
24 | | - implementation("io.ktor:ktor-serialization:$ktorVersion") |
25 | | - implementation("io.ktor:ktor-server-netty:$ktorVersion") |
26 | | - implementation("io.ktor:ktor-server-call-logging:$ktorVersion") |
27 | | - implementation("io.ktor:ktor-server-default-headers:$ktorVersion") |
28 | | - implementation("io.ktor:ktor-server-websockets:$ktorVersion") |
29 | | - implementation("io.ktor:ktor-server-content-negotiation:$ktorVersion") |
30 | | - implementation("io.ktor:ktor-serialization-kotlinx-json:$ktorVersion") |
31 | | - |
32 | | - implementation("com.h2database:h2:$h2Version") |
33 | | - implementation("org.jetbrains.exposed:exposed-core:$exposedVersion") |
34 | | - implementation("org.jetbrains.exposed:exposed-jdbc:$exposedVersion") |
35 | | - implementation("com.zaxxer:HikariCP:$hikariCpVersion") |
36 | | - implementation("org.flywaydb:flyway-core:$flywayVersion") |
37 | | - implementation("ch.qos.logback:logback-classic:$logbackVersion") |
38 | | - |
39 | | - testImplementation(platform("org.junit:junit-bom:$junitVersion")) |
40 | | - testImplementation("org.junit.jupiter:junit-jupiter") |
41 | | - testRuntimeOnly("org.junit.platform:junit-platform-launcher") |
42 | | - testImplementation("org.assertj:assertj-core:$assertjVersion") |
43 | | - testImplementation("io.rest-assured:rest-assured:$restAssuredVersion") |
44 | | - testImplementation("io.ktor:ktor-client-cio:$ktorVersion") |
| 13 | + implementation(libs.bundles.ktor.server) |
| 14 | + implementation(libs.ktor.serialization.kotlinx.json) |
| 15 | + |
| 16 | + implementation(libs.bundles.exposed) |
| 17 | + implementation(libs.h2) |
| 18 | + implementation(libs.hikaricp) |
| 19 | + implementation(libs.flyway) |
| 20 | + implementation(libs.logback) |
| 21 | + |
| 22 | + testImplementation(platform(libs.junit.bom)) |
| 23 | + testImplementation(libs.junit.jupiter) |
| 24 | + testRuntimeOnly(libs.junit.platform.launcher) |
| 25 | + testImplementation(libs.assertj) |
| 26 | + testImplementation(libs.restAssured) |
| 27 | + testImplementation(libs.ktor.client.cio) |
45 | 28 | } |
46 | 29 |
|
47 | 30 | kotlin { |
48 | 31 | jvmToolchain(21) |
| 32 | + compilerOptions { |
| 33 | + allWarningsAsErrors.set(true) |
| 34 | + } |
49 | 35 | } |
50 | 36 |
|
51 | 37 | application { |
|
0 commit comments