-
Notifications
You must be signed in to change notification settings - Fork 2
/
build.gradle.kts
59 lines (48 loc) · 1.47 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
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins {
alias(libs.plugins.kotlinJvm) apply true
alias(libs.plugins.ktfmtPlugin) apply true
alias(libs.plugins.detektPlugin) apply true
alias(libs.plugins.versionUpdate)
alias(libs.plugins.catalogUpdate)
}
group = "com.poisonedyouth"
version = "0.0.1"
val kotlinJvmPluginId: String = libs.plugins.kotlinJvm.get().pluginId
val detektPluginId: String = libs.plugins.detektPlugin.get().pluginId
val ktfmtPluginId: String = libs.plugins.ktfmtPlugin.get().pluginId
val pitestPluginId: String = libs.plugins.pitestPlugin.get().pluginId
val pitestJunit5Version = libs.pitestJunit5.get().version
val pitestLibVersion = libs.pitestPluginLib.get().version
val javaTargetVersion: String = libs.versions.javaVersion.get()
allprojects {
repositories {
mavenCentral()
}
}
subprojects {
apply {
plugin(kotlinJvmPluginId)
plugin(detektPluginId)
plugin(ktfmtPluginId)
}
tasks.withType<KotlinCompile> {
kotlinOptions {
freeCompilerArgs += "-Xjsr305=strict"
jvmTarget = javaTargetVersion
}
}
tasks.withType<Test> {
useJUnitPlatform()
}
ktfmt {
kotlinLangStyle()
}
configurations.all {
resolutionStrategy.eachDependency {
if (requested.group == "org.jetbrains.kotlin") {
useVersion(io.gitlab.arturbosch.detekt.getSupportedKotlinVersion())
}
}
}
}