Skip to content

Commit b1f63ed

Browse files
committed
undo
1 parent d45f842 commit b1f63ed

File tree

2 files changed

+18
-0
lines changed

2 files changed

+18
-0
lines changed

build.gradle.kts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
*/
44

55
import org.jetbrains.kotlin.gradle.plugin.getKotlinPluginVersion
6+
import kotlin.collections.iterator
67

78
plugins {
89
alias(libs.plugins.serialization) apply false
@@ -30,3 +31,11 @@ val kotlinGPVersion = getKotlinPluginVersion()
3031
if (kotlinVersion != kotlinGPVersion) {
3132
error("KGP version mismatch. Project version: $kotlinVersion, KGP version: $kotlinGPVersion")
3233
}
34+
val envVariables = System.getenv();
35+
36+
// Iterate over the Map and print each key-value pair
37+
println("--- All Environment Variables Root ---")
38+
for (entry in envVariables) {
39+
println(entry.key + " = " + entry.value)
40+
}
41+
println("---------------------------------")

gradle-plugin/build.gradle.kts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,15 @@ generateSource(
109109

110110
val globalRootDir: String by extra
111111

112+
val envVariables = System.getenv()
113+
114+
// Iterate over the Map and print each key-value pair
115+
println("--- All Environment Variables ---")
116+
for (entry in envVariables) {
117+
println(entry.key + " = " + entry.value)
118+
}
119+
println("---------------------------------")
120+
112121
val androidHome = System.getenv("ANDROID_HOME")
113122
?: System.getProperty("ANDROID_SDK_HOME")
114123
?: Path(globalRootDir, "local.properties")

0 commit comments

Comments
 (0)