-
Notifications
You must be signed in to change notification settings - Fork 3
/
build.gradle.kts
46 lines (37 loc) · 1.02 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
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
subprojects {
group = "com.faforever.ice"
// Read from gradle.properties
version = "$version"
tasks {
withType<KotlinCompile> {
kotlinOptions {
jvmTarget = "21"
}
}
}
repositories {
mavenCentral()
maven { setUrl("https://jitpack.io") }
gradlePluginPortal()
}
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 {
alias(libs.plugins.kotlin.jvm) apply false
alias(libs.plugins.kotlin.kapt) apply false
alias(libs.plugins.spotless) apply false
alias(libs.plugins.test.logger) apply false
alias(libs.plugins.buildtools.native) apply false
}