-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle.kts
46 lines (40 loc) · 1.25 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
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
import org.jlleitschuh.gradle.ktlint.reporter.ReporterType
plugins {
kotlin("jvm") version "1.9.20"
kotlin("plugin.serialization") version "1.9.20"
id("org.jlleitschuh.gradle.ktlint") version "11.0.0"
application
}
val exposedVersion: String by project
val ktorVersion: String by project
group = "io.beatmaps"
version = "1.0-SNAPSHOT"
kotlin {
jvmToolchain {
languageVersion.set(JavaLanguageVersion.of(21))
}
sourceSets.all {
languageSettings.optIn("kotlin.io.path.ExperimentalPathApi")
languageSettings.optIn("io.ktor.locations.KtorExperimentalLocationsAPI")
languageSettings.optIn("kotlinx.coroutines.flow.FlowPreview")
languageSettings.optIn("kotlin.time.ExperimentalTime")
languageSettings.optIn("io.ktor.util.KtorExperimentalAPI")
languageSettings.optIn("kotlin.ExperimentalUnsignedTypes")
}
}
dependencies {
repositories {
mavenCentral()
maven { url = uri("https://jitpack.io") }
maven { url = uri("https://artifactory.kirkstall.top-cat.me") }
}
}
tasks.withType<KotlinCompile> {
kotlinOptions.jvmTarget = "21"
}
ktlint {
reporters {
reporter(ReporterType.CHECKSTYLE)
}
}