buildscript { dependencyLocking { lockAllConfigurations() } } dependencyLocking { lockAllConfigurations() } plugins { id("bip39.detekt-conventions") id("bip39.ktlint-conventions") alias(libs.plugins.versions) } tasks { withType { gradleReleaseChannel = "current" resolutionStrategy { componentSelection { all { if (isNonStable(candidate.version) && !isNonStable(currentVersion)) { reject("Unstable") } } } } } } val unstableKeywords = listOf("alpha", "beta", "rc", "m", "ea", "build") fun isNonStable(version: String): Boolean { val versionLowerCase = version.lowercase() return unstableKeywords.any { versionLowerCase.contains(it) } }