[Native] Deprecate KLIB repositories in Kotlin/Native compiler

1. Log warnings on usage of KLIB repositories.
2. Don't block using repositories for now.

^KT-61098
This commit is contained in:
Dmitriy Dolovov
2023-10-27 11:56:28 +02:00
committed by Space Team
parent c38a0e10af
commit e7b8f3ecde
4 changed files with 123 additions and 26 deletions
@@ -49,8 +49,14 @@ open class CommonInteropArguments(val argParser: ArgParser) {
.multiple()
val libraryVersion by argParser.option(ArgType.String, shortName = "lv", description = "resulting interop library version")
.default("unspecified")
val repo by argParser.option(ArgType.String, shortName = "r", description = "repository to resolve dependencies")
.multiple()
// TODO: remove after 2.0, KT-61098
val repo by argParser.option(
ArgType.String,
shortName = "r",
description = "repository to resolve dependencies",
deprecatedWarning = "This option is deprecated and will be removed in one of the future releases. Please use library paths instead of library names in all options such as '-library'"
).multiple()
val nodefaultlibs by argParser.option(ArgType.Boolean, NODEFAULTLIBS,
description = "don't link the libraries from dist/klib automatically").default(false)
val nodefaultlibsDeprecated by argParser.option(ArgType.Boolean, NODEFAULTLIBS_DEPRECATED,