-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
46 lines (40 loc) · 1.18 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
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins {
kotlin(Plugins.JVM) version Versions.KT apply false
kotlin(Plugins.SPRING_ALIAS) version Versions.KT apply false
id(Plugins.SPRING_BOOT) version Versions.SPRING_BOOT apply false
id(Plugins.KT_LINT) version Versions.KT_LINT apply false
id(Plugins.SONAR) version Versions.SONAR
}
sonarqube {
properties {
property("sonar.projectKey", "HogwartsSchoolOfMagic_ProtegoTotalumBot")
property("sonar.organization", "hogwarts-school-of-magic")
property("sonar.host.url", "https://sonarcloud.io")
}
}
allprojects {
group = Common.PROJECT_GROUP
version = Common.PROJECT_VERSION
tasks.withType<KotlinCompile> {
kotlinOptions {
freeCompilerArgs = listOf(Common.JSR305)
jvmTarget = Common.JDK_VERSION
}
}
}
subprojects {
repositories {
mavenCentral()
}
apply {
plugin(Plugins.KT)
plugin(Plugins.SPRING)
plugin(Plugins.SPRING_DEPS)
plugin(Plugins.KT_LINT)
}
// Optionally configure plugin
configure<org.jlleitschuh.gradle.ktlint.KtlintExtension> {
debug.set(true)
}
}