Skip to content

Commit bba644a

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

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -294,8 +294,8 @@ publishing {
294294
name = "Snapshots"
295295
url = "https://central.sonatype.com/repository/maven-snapshots/"
296296
credentials {
297-
username "$System.env.SONATYPE_USERNAME"
298-
password "$System.env.SONATYPE_PASSWORD"
297+
username System.getenv("SONATYPE_USERNAME")
298+
password System.getenv("SONATYPE_PASSWORD")
299299
}
300300
}
301301
}

spi/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,8 +120,8 @@ publishing {
120120
name = "Snapshots"
121121
url = "https://central.sonatype.com/repository/maven-snapshots/"
122122
credentials {
123-
username "$System.env.SONATYPE_USERNAME"
124-
password "$System.env.SONATYPE_PASSWORD"
123+
username System.getenv("SONATYPE_USERNAME")
124+
password System.getenv("SONATYPE_PASSWORD")
125125
}
126126
}
127127
}

0 commit comments

Comments
 (0)