From ed6f97a68d58703d689cdad54f05b5c0d4ee54ca Mon Sep 17 00:00:00 2001 From: Sam Snyder Date: Wed, 15 May 2024 10:14:33 -0700 Subject: [PATCH] Maven will also interpolate in environment variables without the "env." prefix --- .../src/main/java/org/openrewrite/maven/MavenSettings.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rewrite-maven/src/main/java/org/openrewrite/maven/MavenSettings.java b/rewrite-maven/src/main/java/org/openrewrite/maven/MavenSettings.java index 8252deefd2a..23fd7302874 100644 --- a/rewrite-maven/src/main/java/org/openrewrite/maven/MavenSettings.java +++ b/rewrite-maven/src/main/java/org/openrewrite/maven/MavenSettings.java @@ -199,7 +199,7 @@ private static class Interpolator { if (key.startsWith("env.")) { return System.getenv().get(key.substring(4)); } - return null; + return System.getenv().get(key); }; public MavenSettings interpolate(MavenSettings mavenSettings) {