diff --git a/client/build.gradle.kts b/client/build.gradle.kts index a1c489ba..5217c4bf 100644 --- a/client/build.gradle.kts +++ b/client/build.gradle.kts @@ -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 @@ -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) }