Skip to content

Commit 7b58d6a

Browse files
committed
Fix for missing properties
1 parent dab6839 commit 7b58d6a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

build.gradle.kts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -138,8 +138,8 @@ subprojects {
138138
maven {
139139
url = uri("https://oss.sonatype.org/service/local/staging/deploy/maven2")
140140
credentials {
141-
username = project.property("sonatypeUsername") as String
142-
password = project.property("sonatypePassword") as String
141+
username = project.findProperty("sonatypeUsername") as String? ?: System.getenv("sonatypeUsername")
142+
password = project.findProperty("sonatypePassword") as String? ?: System.getenv("sonatypePassword")
143143
}
144144
}
145145
}

0 commit comments

Comments
 (0)