Skip to content

Commit

Permalink
Added Gradle Doctor to the build
Browse files Browse the repository at this point in the history
  • Loading branch information
Mr3zee committed Sep 11, 2024
1 parent 22edd7d commit 81bed3c
Show file tree
Hide file tree
Showing 6 changed files with 24 additions and 0 deletions.
1 change: 1 addition & 0 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ plugins {
alias(libs.plugins.kotlinx.rpc) apply false
alias(libs.plugins.atomicfu) apply false
alias(libs.plugins.conventions.kover)
alias(libs.plugins.conventions.gradle.doctor)
alias(libs.plugins.binary.compatibility.validator)
}

Expand Down
4 changes: 4 additions & 0 deletions compiler-plugin/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@
* Copyright 2023-2024 JetBrains s.r.o and contributors. Use of this source code is governed by the Apache 2.0 license.
*/

plugins {
alias(libs.plugins.conventions.gradle.doctor)
}

val kotlinVersion: KotlinVersion by extra
val rpcVersion: String = libs.versions.kotlinx.rpc.get()

Expand Down
1 change: 1 addition & 0 deletions gradle-conventions/latest-only/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,5 @@ dependencies {
implementation(":gradle-conventions-settings")
implementation(libs.kotlin.gradle.plugin)
implementation(libs.kover.gradle.plugin)
implementation(libs.gradle.doctor.plugin)
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
/*
* Copyright 2023-2024 JetBrains s.r.o and contributors. Use of this source code is governed by the Apache 2.0 license.
*/

plugins {
id("com.osacky.doctor")
}

doctor {
enableTestCaching = false
warnWhenNotUsingParallelGC = true
disallowMultipleDaemons = true
GCFailThreshold = 0.5f
}
1 change: 1 addition & 0 deletions gradle-plugin/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ plugins {
alias(libs.plugins.conventions.gradle.publish)
alias(libs.plugins.gradle.kotlin.dsl)
alias(libs.plugins.gradle.plugin.publish)
alias(libs.plugins.conventions.gradle.doctor)
}

group = "org.jetbrains.kotlinx"
Expand Down
3 changes: 3 additions & 0 deletions versions-root/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ kotlin-wrappers = "1.0.0-pre.781"
junit4 = "4.13.2"
junit5 = "5.10.3"
intellij = "213.7172.53"
gradle-doctor = "0.10.0"

# stub versions – relpaced based on kotlin, mostly for gradle-related (plugins) dependencies
# but also for dependencies for compiler specific modules
Expand Down Expand Up @@ -93,6 +94,7 @@ kover-gradle-plugin = { module = "org.jetbrains.kotlinx:kover-gradle-plugin", ve
kotlin-js-wrappers = { module = "org.jetbrains.kotlin-wrappers:kotlin-js", version.ref = "kotlin-wrappers" }
gradle-kotlin-dsl-pluigns = { module = "org.gradle.kotlin:gradle-kotlin-dsl-plugins", version.ref = "gradle-kotlin-dsl" }
intellij-util = { module = "com.jetbrains.intellij.platform:util", version.ref = "intellij" }
gradle-doctor-plugin = { module = "com.osacky.doctor:doctor-plugin", version.ref = "gradle-doctor" }

[plugins]
kotlin-multiplatform = { id = "org.jetbrains.kotlin.multiplatform", version.ref = "kotlin-lang" }
Expand All @@ -113,6 +115,7 @@ conventions-jvm = { id = "conventions-jvm", version.ref = "kotlinx-rpc" }
conventions-kmp = { id = "conventions-kmp", version.ref = "kotlinx-rpc" }
conventions-gradle-publish = { id = "conventions-gradle-publish", version.ref = "kotlinx-rpc" }
conventions-kover = { id = "conventions-kover", version.ref = "kotlinx-rpc" }
conventions-gradle-doctor = { id = "conventions-gradle-doctor", version.ref = "kotlinx-rpc" }
compiler-specific-module = { id = "compiler-specific-module", version.ref = "kotlinx-rpc" }

# gradle-plugin project
Expand Down

0 comments on commit 81bed3c

Please sign in to comment.