Skip to content

Commit e7d5d48

Browse files
authored
fix: Update System.env syntax for Gradle 9 compatibility (opensearch-project#122)
Signed-off-by: Daniel Widdis <[email protected]>
1 parent 6f4a086 commit e7d5d48

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -129,8 +129,8 @@ publishing {
129129
name = "Snapshots"
130130
url = "https://central.sonatype.com/repository/maven-snapshots/"
131131
credentials {
132-
username "$System.env.SONATYPE_USERNAME"
133-
password "$System.env.SONATYPE_PASSWORD"
132+
username System.getenv("SONATYPE_USERNAME")
133+
password System.getenv("SONATYPE_PASSWORD")
134134
}
135135
}
136136
maven {

0 commit comments

Comments
 (0)