[Build] Remove usages of Provider.forUseAtConfigurationTime()

It's not required anymore and was deprecated since Gradle 7.4
#KTI-1221 In Progress
This commit is contained in:
Alexander.Likhachev
2023-05-17 15:38:24 +02:00
committed by Space Team
parent 58490ea184
commit 407a2d4203
3 changed files with 6 additions and 7 deletions
+2 -2
View File
@@ -31,9 +31,9 @@ val currentOsType = run {
else -> OsName.UNKNOWN
}
val osArch = when (providers.systemProperty("sun.arch.data.model").forUseAtConfigurationTime().get()) {
val osArch = when (providers.systemProperty("sun.arch.data.model").get()) {
"32" -> OsArch.X86_32
"64" -> when (providers.systemProperty("os.arch").forUseAtConfigurationTime().get().toLowerCase()) {
"64" -> when (providers.systemProperty("os.arch").get().toLowerCase()) {
"aarch64" -> OsArch.ARM64
else -> OsArch.X86_64
}