aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLinnea Gräf <nea@nea.moe>2024-12-15 02:19:34 +0100
committerLinnea Gräf <nea@nea.moe>2024-12-15 02:19:34 +0100
commitdd70bb6cb4f537cbddf28a24941d23c23f6639b6 (patch)
tree16fd6de18dd9ada0815588a070750d7ccc4aa901
parent4b3f2275b4b000af63f766c469220d39d571178a (diff)
downloadgradle-init-scripts-dd70bb6cb4f537cbddf28a24941d23c23f6639b6.tar.gz
gradle-init-scripts-dd70bb6cb4f537cbddf28a24941d23c23f6639b6.tar.bz2
gradle-init-scripts-dd70bb6cb4f537cbddf28a24941d23c23f6639b6.zip
fix private propertiesHEADmaster
-rw-r--r--privateProjectProperties.init.gradle.kts15
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)
+ }
+ }
+}
+
+
+