-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
69 lines (60 loc) · 1.93 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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins {
kotlin("jvm") version "1.7.10"
kotlin("plugin.spring") version "1.7.10"
idea
id("org.jlleitschuh.gradle.ktlint") version "11.0.0"
id("com.github.ben-manes.versions") version "0.42.0"
}
group = "example.ktlint"
repositories {
mavenCentral()
}
dependencies {
implementation("org.springframework.boot:spring-boot-starter-web:${property("springWebVersion")}")
testImplementation("org.assertj:assertj-core:${property("assertJVersion")}")
testImplementation("org.springframework.boot:spring-boot-starter-test:${property("springWebVersion")}")
testImplementation("org.testcontainers:junit-jupiter:${property("testcontainersVersion")}")
}
idea {
module {
inheritOutputDirs = false
}
}
tasks {
withType<KotlinCompile> {
kotlinOptions {
freeCompilerArgs = listOf("-Xjsr305=strict")
jvmTarget = JavaVersion.VERSION_17.toString()
}
}
withType<Test> {
useJUnitPlatform { }
}
// ktlint {
// version.set("0.44.0") // Pinterest version
// debug.set(true)
// verbose.set(true)
// android.set(false)
// ignoreFailures.set(true)
// disabledRules.set(setOf("indent"))
// enableExperimentalRules.set(true)
// reporters {
// reporter(org.jlleitschuh.gradle.ktlint.reporter.ReporterType.PLAIN)
// reporter(org.jlleitschuh.gradle.ktlint.reporter.ReporterType.CHECKSTYLE)
//
// customReporters {
// register("html") {
// fileExtension = "html"
// dependency = "com.pinterest.ktlint:ktlint-reporter-html:0.38.1"
// }
// }
// }
// kotlinScriptAdditionalPaths {
// include(fileTree("scripts/"))
// }
// filter {
// exclude("**/*Test*")
// }
// }
}