diff options
-rw-r--r-- | privateProjectProperties.init.gradle.kts | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/privateProjectProperties.init.gradle.kts b/privateProjectProperties.init.gradle.kts new file mode 100644 index 0000000..95998c7 --- /dev/null +++ b/privateProjectProperties.init.gradle.kts @@ -0,0 +1,15 @@ +import java.util.Properties + +allprojects { + val file = project.file(".gradle/private.properties") + if (file.exists()) { + val properties = Properties() + properties.load(file.inputStream()) + properties.forEach { (k, v) -> + (this.properties as MutableMap<String, String>).put(k as String, v as String) + } + } +} + + + |