Skip to content

Commit

Permalink
Simplify access to single properties
Browse files Browse the repository at this point in the history
If we only need to fetch a single property, then we don't need to
build an entire mutable `Map` that represents all properties.
  • Loading branch information
liblit committed Feb 9, 2024
1 parent 130b92c commit 95e4563
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -135,8 +135,8 @@ val mavenRepository: MavenArtifactRepository =
"https://oss.sonatype.org/service/local/staging/deploy/maven2/"))
as String)
credentials {
username = properties["SONATYPE_NEXUS_USERNAME"] as String?
password = properties["SONATYPE_NEXUS_PASSWORD"] as String?
username = findProperty("SONATYPE_NEXUS_USERNAME") as String?
password = findProperty("SONATYPE_NEXUS_PASSWORD") as String?
}
}

Expand Down
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ JavaVersion.current().let {

group = name

version = properties["VERSION_NAME"] as String
version = property("VERSION_NAME") as String

// version of Eclipse JARs to use for Eclipse-integrated WALA components.
val eclipseVersion: EclipseRelease by extra {
Expand Down

0 comments on commit 95e4563

Please sign in to comment.