-
-
Notifications
You must be signed in to change notification settings - Fork 49
/
build.gradle.kts
81 lines (66 loc) · 2.16 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
70
71
72
73
74
75
76
77
78
79
80
import com.osacky.doctor.DoctorExtension
import org.gradle.api.tasks.testing.logging.TestLogEvent
// Upgrade transitive dependencies in plugin classpath
buildscript {
repositories {
gradlePluginPortal()
}
dependencies {
constraints {
// The plugin com.github.ben-manes.versions:0.51.0 has dependency on com.squareup.okio:okio:3.2.0
// which has reported vulnerability CVE-2023-3635. Use a newer version.
classpath(libs.okio)
}
}
}
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.wrapper {
gradleVersion = "8.9"
}
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(":publishAllPublicationsToMavenRepository"))
}
tasks.register("publishToMavenLocal").configure {
dependsOn(gradle.includedBuild("doctor-plugin").task(":publishToMavenLocal"))
}