forked from FAForever/kotlin-ice-adapter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
43 lines (36 loc) · 1.09 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
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
subprojects {
group = "com.faforever.ice"
version = "1.0-SNAPSHOT"
tasks {
withType<KotlinCompile> {
kotlinOptions {
jvmTarget = "17"
}
}
}
repositories {
mavenCentral()
maven { setUrl("https://jitpack.io") }
}
apply(plugin = "com.adarshr.test-logger")
apply(plugin = "com.diffplug.spotless")
configure<com.diffplug.gradle.spotless.SpotlessExtension> {
val ktlintVersion = "0.49.1"
kotlin {
ktlint(ktlintVersion)
}
kotlinGradle {
target("*.gradle.kts")
ktlint(ktlintVersion)
}
}
}
plugins {
val kotlinVersion = "1.9.10"
id("org.jetbrains.kotlin.jvm") version kotlinVersion apply false
id("org.jetbrains.kotlin.kapt") version kotlinVersion apply false
id("org.jetbrains.kotlin.plugin.allopen") version kotlinVersion apply false
id("com.diffplug.spotless") version "6.21.0" apply false
id("com.adarshr.test-logger") version "3.2.0" apply false
}