-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
79 lines (65 loc) · 2.66 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
import org.gradle.api.tasks.testing.logging.TestExceptionFormat
import org.jetbrains.kotlin.gradle.dsl.JvmTarget
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins {
id("org.springframework.boot") version "3.3.5"
id("io.spring.dependency-management") version "1.1.6"
// id("org.graalvm.buildtools.native") version "0.10.2"
kotlin("jvm") version "2.0.21"
kotlin("plugin.spring") version "2.0.21"
}
group = "io.github.jvmusin"
version = "0.0.1-SNAPSHOT"
java {
sourceCompatibility = JavaVersion.VERSION_21
}
repositories {
mavenCentral()
}
val jsoupVersion = "1.18.1"
val kotestVersion = "5.9.1"
val kotestExtensionsSpringVersion = "1.3.0"
dependencies {
implementation("org.springframework.boot:spring-boot-starter-actuator")
implementation("org.springframework.boot:spring-boot-starter-web")
implementation("org.springframework.boot:spring-boot-starter-websocket")
implementation("com.fasterxml.jackson.module:jackson-module-kotlin")
implementation("org.jetbrains.kotlin:kotlin-reflect")
testImplementation("org.springframework.boot:spring-boot-starter-test")
implementation("org.springframework.boot:spring-boot-starter-webflux")
implementation("io.projectreactor.kotlin:reactor-kotlin-extensions")
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-reactor")
testImplementation("io.projectreactor:reactor-test")
implementation("org.jsoup:jsoup:$jsoupVersion")
implementation("org.apache.commons:commons-compress:1.27.1") // For reading zip archives from Polygon
implementation("com.fasterxml.jackson.dataformat:jackson-dataformat-xml") // For parsing problem.xml
testImplementation("io.kotest:kotest-runner-junit5:$kotestVersion")
testImplementation("io.kotest:kotest-assertions-core:$kotestVersion")
testImplementation("io.kotest.extensions:kotest-extensions-spring:$kotestExtensionsSpringVersion")
// Основная библиотека OkHttp
implementation("com.squareup.okhttp3:okhttp:4.12.0")
}
tasks.withType<KotlinCompile> {
compilerOptions {
freeCompilerArgs.add("-Xjsr305=strict")
jvmTarget.set(JvmTarget.JVM_21)
}
}
tasks.withType<Test> {
useJUnitPlatform()
testLogging {
exceptionFormat = TestExceptionFormat.FULL
}
}
if (project.hasProperty("copyFrontend")) {
val copyFrontend = tasks.register<Copy>("copyFrontend") {
group = "build"
description = "Copies the frontend build to the resources."
from("frontend/dist")
into("build/resources/main/static")
}
tasks.named<ProcessResources>("processResources") {
dependsOn(copyFrontend)
exclude("static/index.html")
}
}