-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathbuild.gradle.kts
51 lines (48 loc) · 1.65 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
import org.apache.tools.ant.taskdefs.condition.Os
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins {
id("org.springframework.boot") version "3.2.5" apply false
id("io.spring.dependency-management") version "1.1.4" apply false
id("io.ktor.plugin") version "2.3.12" apply false
kotlin("jvm") version "2.0.0" apply false
kotlin("plugin.spring") version "2.0.0" apply false
}
allprojects {
group = "me.ilya40umov.kc"
version = "0.0.1-SNAPSHOT"
repositories {
mavenCentral()
}
}
subprojects {
apply<JavaPlugin>()
configure<JavaPluginExtension> {
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
}
dependencies {
"implementation"("io.github.oshai:kotlin-logging-jvm:6.0.9")
val kotestVersion = "5.8.1"
"implementation"(platform("org.junit:junit-bom:5.10.3"))
"testImplementation"("io.kotest:kotest-runner-junit5:$kotestVersion")
"testImplementation"("io.kotest:kotest-assertions-core:$kotestVersion")
"testImplementation"("org.junit.jupiter:junit-jupiter-api")
"testRuntimeOnly"("org.junit.jupiter:junit-jupiter-engine")
if (Os.isFamily(Os.FAMILY_MAC)) {
"runtimeOnly"("io.netty:netty-resolver-dns-native-macos:4.1.108.Final:osx-aarch_64")
}
}
tasks {
withType<KotlinCompile> {
kotlinOptions {
freeCompilerArgs += "-Xjsr305=strict"
jvmTarget = "17"
}
}
withType<Test> {
useJUnitPlatform {
testLogging.showStandardStreams = true
}
}
}
}