generated from lordcodes/template-kotlin-jvm-library
-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathbuild.gradle.kts
54 lines (46 loc) · 1.26 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
52
53
54
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
buildscript {
repositories {
mavenCentral()
}
}
plugins {
base
kotlin("jvm") version "2.0.20" apply false
id("io.gitlab.arturbosch.detekt") version "1.23.6"
id("com.github.ben-manes.versions") version "0.51.0"
id("org.jmailen.kotlinter") version "4.4.1" apply false
}
allprojects {
repositories {
mavenCentral()
}
tasks.withType<KotlinCompile>().configureEach {
kotlinOptions {
jvmTarget = JavaVersion.VERSION_17.toString()
}
}
tasks.withType<JavaCompile> {
sourceCompatibility = JavaVersion.VERSION_17.toString()
targetCompatibility = JavaVersion.VERSION_17.toString()
}
tasks.withType<Test>().configureEach {
reports {
html.required.set(true)
}
testLogging {
events("passed", "skipped", "failed")
}
}
}
detekt {
source.from(
"$projectDir/turtle/src/main/kotlin",
"$projectDir/turtle/src/test/kotlin",
"$projectDir/buildSrc/src/main/kotlin"
)
parallel = true
config.from("${rootProject.projectDir}/config/detekt/detekt.yml")
buildUponDefaultConfig = true
}
apply(from = "scripts/build-verify.gradle.kts")