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:
+1
-1
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user