Small improvements in the dependency substitution code

This commit is contained in:
Niels van Velzen
2020-09-12 10:49:35 +02:00
parent 712c2be407
commit b83729f665
+4 -2
View File
@@ -1,3 +1,5 @@
import java.util.Properties
include(":app")
pluginManagement {
@@ -11,8 +13,8 @@ pluginManagement {
}
// Load properties from local.properties
val properties = java.util.Properties().apply {
val location = file("local.properties")
val properties = Properties().apply {
val location = File("local.properties")
if (location.exists())
load(location.inputStream())
}