File tree Expand file tree Collapse file tree 2 files changed +18
-0
lines changed
Expand file tree Collapse file tree 2 files changed +18
-0
lines changed Original file line number Diff line number Diff line change 33 */
44
55import org.jetbrains.kotlin.gradle.plugin.getKotlinPluginVersion
6+ import kotlin.collections.iterator
67
78plugins {
89 alias(libs.plugins.serialization) apply false
@@ -30,3 +31,11 @@ val kotlinGPVersion = getKotlinPluginVersion()
3031if (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 (" ---------------------------------" )
Original file line number Diff line number Diff line change @@ -109,6 +109,15 @@ generateSource(
109109
110110val 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+
112121val androidHome = System .getenv(" ANDROID_HOME" )
113122 ? : System .getProperty(" ANDROID_SDK_HOME" )
114123 ? : Path (globalRootDir, " local.properties" )
You can’t perform that action at this time.
0 commit comments