Skip to content

Commit

Permalink
jdk 21 for GH Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
lamba92 committed Nov 13, 2024
1 parent 843bdef commit 5e963b0
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion buildSrc/src/main/kotlin/Utils.kt
Original file line number Diff line number Diff line change
Expand Up @@ -124,8 +124,12 @@ fun String.toCamelCase() =

val Project.localProperties: Map<String, String>
get() {
val localPropertiesFile = rootProject.file("local.properties")
if (!localPropertiesFile.exists()) {
return emptyMap()
}
val p = Properties()
rootProject.file("local.properties")
localPropertiesFile
.inputStream()
.use { p.load(it) }
return p.entries.associate { it.key.toString() to it.value.toString() }
Expand Down

0 comments on commit 5e963b0

Please sign in to comment.