-
-
Notifications
You must be signed in to change notification settings - Fork 63
Expand file tree
/
Copy pathbuild.gradle.kts
More file actions
62 lines (50 loc) · 1.7 KB
/
Copy pathbuild.gradle.kts
File metadata and controls
62 lines (50 loc) · 1.7 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
import com.osacky.doctor.DoctorExtension
import org.gradle.api.tasks.testing.logging.TestLogEvent
plugins {
alias(libs.plugins.kgp)
alias(libs.plugins.versions)
id("com.osacky.doctor")
}
configure<DoctorExtension> {
disallowMultipleDaemons.set(false)
GCWarningThreshold.set(0.01f)
enableTestCaching.set(false)
downloadSpeedWarningThreshold.set(2.0f)
daggerThreshold.set(100)
javaHome {
ensureJavaHomeMatches.set(true)
ensureJavaHomeIsSet.set(true)
}
}
tasks.withType(Test::class.java).configureEach {
testLogging {
events = setOf(TestLogEvent.SKIPPED, TestLogEvent.FAILED, TestLogEvent.PASSED)
}
}
tasks.register("pluginTasks").configure {
dependsOn(gradle.includedBuild("doctor-plugin").task(":tasks"))
}
tasks.register("checkPlugin").configure {
dependsOn(gradle.includedBuild("doctor-plugin").task(":check"))
}
tasks.register("lintKotlinPlugin").configure {
dependsOn(gradle.includedBuild("doctor-plugin").task(":lintKotlin"))
}
tasks.register("formatKotlinPlugin").configure {
dependsOn(gradle.includedBuild("doctor-plugin").task(":formatKotlin"))
}
tasks.register("testPlugin").configure {
dependsOn(gradle.includedBuild("doctor-plugin").task(":test"))
}
tasks.register("intTestPlugin").configure {
dependsOn(gradle.includedBuild("doctor-plugin").task(":integrationTest"))
}
tasks.register("publishToGradlePlugin").configure {
dependsOn(gradle.includedBuild("doctor-plugin").task(":publishPlugins"))
}
tasks.register("publishToMavenCentral").configure {
dependsOn(gradle.includedBuild("doctor-plugin").task(":publishToMavenCentral"))
}
tasks.register("publishToMavenLocal").configure {
dependsOn(gradle.includedBuild("doctor-plugin").task(":publishToMavenLocal"))
}