-
Notifications
You must be signed in to change notification settings - Fork 16
/
build.gradle.kts
37 lines (32 loc) · 944 Bytes
/
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
plugins {
id(libs.plugins.kotlin.jvm.get().pluginId)
id(libs.plugins.kotlinx.serialization.get().pluginId)
alias(libs.plugins.arrow.gradle.publish)
alias(libs.plugins.detekt)
alias(libs.plugins.semver.gradle)
alias(libs.plugins.spotless)
}
repositories { mavenCentral() }
java {
sourceCompatibility = JavaVersion.VERSION_11
targetCompatibility = JavaVersion.VERSION_11
toolchain { languageVersion = JavaLanguageVersion.of(11) }
}
dependencies {
api(libs.kotlinx.serialization.json)
detektPlugins(project(":detekt-rules"))
implementation(projects.xefCore)
implementation(projects.xefOpenaiClient)
}
detekt {
toolVersion = "1.23.1"
source.setFrom(files("src/main/kotlin"))
config.setFrom("../config/detekt/detekt.yml")
autoCorrect = true
}
spotless {
kotlin {
target("**/*.kt")
ktfmt().googleStyle().configure { it.setRemoveUnusedImport(true) }
}
}