mobiledevpro / Android-Kotlin-MVVM-Template

AppTemplate | MVVM + Clean Architecture | Kotlin, Coroutines, LiveData, Koin, Databinding, Navigation components, Room, Crashlytics, Circle CI config, commons classes for UI.
https://bento.me/mobiledevpro
Apache License 2.0
556 stars 51 forks source link

Attach a Gradle doctor plugin #33

Closed dmitriy-chernysh closed 2 years ago

dmitriy-chernysh commented 2 years ago

Into root/build.gradle

// Gradle Doctor
// https://runningcode.github.io/gradle-doctor/

plugins {
    id("com.osacky.doctor") version "0.7.3"
}
// Gradle Doctor all settings here https://runningcode.github.io/gradle-doctor/configuration/
doctor {
    disallowMultipleDaemons = true
    negativeAvoidanceThreshold = 500
    warnWhenJetifierEnabled = false

    javaHome {
        ensureJavaHomeIsSet = true
        ensureJavaHomeMatches = true
        failOnError.set(true)
    }
}