Skip to content

Commit 7df6d6f

Browse files
authored
fix: Update System.env syntax for Gradle 9 compatibility (#1920)
Signed-off-by: Daniel Widdis <[email protected]>
1 parent 5fe3d1c commit 7df6d6f

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

alerting/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,8 +85,8 @@ publishing {
8585
name = "Snapshots"
8686
url = "https://central.sonatype.com/repository/maven-snapshots/"
8787
credentials {
88-
username "$System.env.SONATYPE_USERNAME"
89-
password "$System.env.SONATYPE_PASSWORD"
88+
username System.getenv("SONATYPE_USERNAME")
89+
password System.getenv("SONATYPE_PASSWORD")
9090
}
9191
}
9292
}

spi/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,8 @@ publishing {
4646
name = "Snapshots"
4747
url = "https://central.sonatype.com/repository/maven-snapshots/"
4848
credentials {
49-
username "$System.env.SONATYPE_USERNAME"
50-
password "$System.env.SONATYPE_PASSWORD"
49+
username System.getenv("SONATYPE_USERNAME")
50+
password System.getenv("SONATYPE_PASSWORD")
5151
}
5252
}
5353
}

0 commit comments

Comments
 (0)