in buildSrc/src/main/kotlin/CommunityProjectsBuild.kt [142:149]
fun shouldUseLocalMaven(project: Project): Boolean {
val hasSnapshotDependency = project.rootProject.properties.any { (key, value) ->
key.endsWith("_version") && value is String && value.endsWith("-SNAPSHOT").also {
if (it) println("NOTE: USING SNAPSHOT VERSION: $key=$value")
}
}
return hasSnapshotDependency || isSnapshotTrainEnabled(project)
}