[Gradle] Fix warnings in DefaultCInteropSettings

^KT-56904 In Progress
This commit is contained in:
Alexander.Likhachev
2024-01-30 11:07:40 +01:00
committed by Space Team
parent 839723e4de
commit 5c4fbcb623
@@ -80,6 +80,7 @@ abstract class DefaultCInteropSettings @Inject internal constructor(
private fun getDefaultCinteropDefinitionFile(): File = params.services.projectLayout.projectDirectory.file("src/nativeInterop/cinterop/$name.def").asFile
val definitionFile: RegularFileProperty = params.services.objectFactory.fileProperty().convention(
@Suppress("DEPRECATION") // deprecated property is used intentionally during deprecation period
params.services.projectLayout.file(defFileProperty)
)
@@ -87,6 +88,7 @@ abstract class DefaultCInteropSettings @Inject internal constructor(
var defFile: File
get() = definitionFile.getFile()
set(value) {
@Suppress("DEPRECATION") // deprecated property is used intentionally during deprecation period
defFileProperty.set(value)
}