-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle.kts
More file actions
82 lines (72 loc) · 2.38 KB
/
build.gradle.kts
File metadata and controls
82 lines (72 loc) · 2.38 KB
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
70
71
72
73
74
75
76
77
78
79
80
81
82
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
import org.springframework.boot.gradle.plugin.SpringBootPlugin
plugins {
id("io.gitlab.arturbosch.detekt") version "1.1.1"
id("io.spring.dependency-management") version "1.0.8.RELEASE"
id("org.jlleitschuh.gradle.ktlint") version "9.1.0"
id("org.springframework.boot") version "2.2.1.RELEASE" apply false
java
idea
kotlin("jvm") version "1.3.60"
kotlin("plugin.spring") version "1.3.60"
}
allprojects {
group = "com.okue.midori"
version = "0.0.1-SNAPSHOT"
repositories {
mavenCentral()
}
}
subprojects {
apply {
plugin("io.gitlab.arturbosch.detekt")
plugin("io.spring.dependency-management")
plugin("org.jlleitschuh.gradle.ktlint")
plugin("java")
}
ktlint {
android.set(true)
verbose.set(true)
disabledRules.set(setOf("import-ordering"))
filter {
exclude { element -> element.file.path.contains("generated-java") }
}
}
detekt {
reports.xml.enabled = false
parallel = true
ignoreFailures = true
}
dependencyManagement {
dependencies {
imports {
mavenBom(SpringBootPlugin.BOM_COORDINATES)
mavenBom("org.jetbrains.kotlin:kotlin-bom:1.3.60")
}
dependencySet("com.github.marcoferrer.krotoplus:0.5.0") {
entry("kroto-plus-coroutines")
entry("kroto-plus-message")
}
dependency("io.github.lognet:grpc-spring-boot-starter:3.4.3")
dependency("io.github.microutils:kotlin-logging:1.7.6")
dependency("org.jetbrains.kotlinx:kotlinx-coroutines-slf4j:1.3.2")
dependency("org.jetbrains.kotlinx:kotlinx-coroutines-reactor:1.3.2")
}
}
dependencies {
annotationProcessor("org.springframework.boot:spring-boot-configuration-processor")
implementation("javax.annotation:javax.annotation-api:1.3.2")
testImplementation("org.springframework.boot:spring-boot-starter-test") {
exclude(group = "org.junit.vintage", module = "junit-vintage-engine")
}
}
tasks.withType<KotlinCompile> {
kotlinOptions {
freeCompilerArgs = listOf("-Xjsr305=strict")
jvmTarget = "1.8"
}
}
tasks.withType<Test> {
useJUnitPlatform()
}
}