Skip to content

Commit

Permalink
Fix client module build.gradle.kts
Browse files Browse the repository at this point in the history
  • Loading branch information
momosetkn committed Oct 13, 2024
1 parent fde7dec commit f3913df
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion client/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import java.util.Properties
import kotlin.io.path.Path

val kotestVersion = rootProject.properties["kotestVersion"] as String
val slf4jVersion = rootProject.properties["slf4jVersion"] as String
Expand All @@ -8,7 +9,7 @@ val liquibaseVersion = getSnapshotOrDefaultVersion("liquibaseVersion")

fun loadDefaultProperty(propertyName: String): String {
val gradleProps = Properties()
val gradlePropertiesFile = file(rootProject.path).toPath().resolveSibling("gradle.properties").toFile()
val gradlePropertiesFile = Path(rootProject.path).resolveSibling("gradle.properties").toFile()
gradlePropertiesFile.inputStream().use { gradleProps.load(it) }
return gradleProps.getProperty(propertyName)
}
Expand Down

0 comments on commit f3913df

Please sign in to comment.