KT-52959 stop using project.rootProject in KotlinProperties.kt

project.rootProject breaks project isolation. The access is not needed here as we can
simply use project.getRootDir https://docs.gradle.org/current/javadoc/org/gradle/api/Project.html#getRootDir--

^KT-52959 Fixed
This commit is contained in:
Aurimas
2022-06-24 10:50:14 -07:00
committed by teamcity
parent a218ad92be
commit 26ed21ec96
@@ -40,7 +40,7 @@ import java.util.*
internal class PropertiesProvider private constructor(private val project: Project) {
private val localProperties: Properties by lazy {
Properties().apply {
val localPropertiesFile = project.rootProject.file("local.properties")
val localPropertiesFile = File(project.rootDir, "local.properties")
if (localPropertiesFile.isFile) {
localPropertiesFile.inputStream().use {
load(it)