Skip to content

Commit faf307f

Browse files
authored
Added Gradle Doctor to the build (#189)
1 parent 6f2b057 commit faf307f

File tree

6 files changed

+24
-0
lines changed

6 files changed

+24
-0
lines changed

build.gradle.kts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ plugins {
1010
alias(libs.plugins.kotlinx.rpc) apply false
1111
alias(libs.plugins.atomicfu) apply false
1212
alias(libs.plugins.conventions.kover)
13+
alias(libs.plugins.conventions.gradle.doctor)
1314
alias(libs.plugins.binary.compatibility.validator)
1415
}
1516

compiler-plugin/build.gradle.kts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22
* Copyright 2023-2024 JetBrains s.r.o and contributors. Use of this source code is governed by the Apache 2.0 license.
33
*/
44

5+
plugins {
6+
alias(libs.plugins.conventions.gradle.doctor)
7+
}
8+
59
val kotlinVersion: KotlinVersion by extra
610
val rpcVersion: String = libs.versions.kotlinx.rpc.get()
711

gradle-conventions/latest-only/build.gradle.kts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,5 @@ dependencies {
1414
implementation(":gradle-conventions-settings")
1515
implementation(libs.kotlin.gradle.plugin)
1616
implementation(libs.kover.gradle.plugin)
17+
implementation(libs.gradle.doctor.plugin)
1718
}
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
/*
2+
* Copyright 2023-2024 JetBrains s.r.o and contributors. Use of this source code is governed by the Apache 2.0 license.
3+
*/
4+
5+
plugins {
6+
id("com.osacky.doctor")
7+
}
8+
9+
doctor {
10+
enableTestCaching = false
11+
warnWhenNotUsingParallelGC = true
12+
disallowMultipleDaemons = true
13+
GCFailThreshold = 0.5f
14+
}

gradle-plugin/build.gradle.kts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ plugins {
99
alias(libs.plugins.conventions.gradle.publish)
1010
alias(libs.plugins.gradle.kotlin.dsl)
1111
alias(libs.plugins.gradle.plugin.publish)
12+
alias(libs.plugins.conventions.gradle.doctor)
1213
}
1314

1415
group = "org.jetbrains.kotlinx"

versions-root/libs.versions.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ kotlin-wrappers = "1.0.0-pre.781"
1717
junit4 = "4.13.2"
1818
junit5 = "5.10.3"
1919
intellij = "213.7172.53"
20+
gradle-doctor = "0.10.0"
2021

2122
# Stub versions – relpaced based on kotlin, mostly for gradle-related (plugins) dependencies
2223
# but also for dependencies for compiler-specific modules.
@@ -97,6 +98,7 @@ kover-gradle-plugin = { module = "org.jetbrains.kotlinx:kover-gradle-plugin", ve
9798
kotlin-js-wrappers = { module = "org.jetbrains.kotlin-wrappers:kotlin-js", version.ref = "kotlin-wrappers" }
9899
gradle-kotlin-dsl-pluigns = { module = "org.gradle.kotlin:gradle-kotlin-dsl-plugins", version.ref = "gradle-kotlin-dsl" }
99100
intellij-util = { module = "com.jetbrains.intellij.platform:util", version.ref = "intellij" }
101+
gradle-doctor-plugin = { module = "com.osacky.doctor:doctor-plugin", version.ref = "gradle-doctor" }
100102

101103
[plugins]
102104
kotlin-multiplatform = { id = "org.jetbrains.kotlin.multiplatform", version.ref = "kotlin-lang" }
@@ -117,6 +119,7 @@ conventions-jvm = { id = "conventions-jvm", version.ref = "kotlinx-rpc" }
117119
conventions-kmp = { id = "conventions-kmp", version.ref = "kotlinx-rpc" }
118120
conventions-gradle-publish = { id = "conventions-gradle-publish", version.ref = "kotlinx-rpc" }
119121
conventions-kover = { id = "conventions-kover", version.ref = "kotlinx-rpc" }
122+
conventions-gradle-doctor = { id = "conventions-gradle-doctor", version.ref = "kotlinx-rpc" }
120123
compiler-specific-module = { id = "compiler-specific-module", version.ref = "kotlinx-rpc" }
121124

122125
# gradle-plugin project

0 commit comments

Comments
 (0)