Files
renovate/lib/modules/manager/kotlin-script
Simon Marquis 8ea65f77d2 fix(kotlin-script): support vararg arguments in @file:DependsOn and @file:Repository (#44762)
* fix(kotlin-script): support vararg arguments in @file:DependsOn and @file:Repository

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>

* fix(kotlin-script): remove unreachable branch to restore code coverage

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>

* refactor(kotlin-script): restore functional style after vararg fix

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>

* fix(kotlin-script): use non-null assertion to avoid uncovered branches

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>

* Implement requested changes

---------

Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-08-19 14:09:53 +00:00
..

Renovate supports upgrading dependencies in Kotlin Script files. Read the Kotlin Script docs to learn more. For example:

#!/usr/bin/env kotlin
@file:Repository("https://jitpack.io")
@file:DependsOn("com.github.krzema12:github-actions-kotlin-dsl:main-SNAPSHOT")
@file:DependsOn("org.eclipse.jgit:org.eclipse.jgit:4.6.0.201612231935-r")
@file:DependsOn("org.jetbrains.lets-plot:lets-plot-kotlin-jvm:3.0.2")

println("Hello world!")

// ...

By default, Renovate only scans files with the .main.kts extension and not .kts. This way Renovate avoids ambiguity with Gradle config files that use the .gradle.kts extension.

If you want to manage other Kotlin Script files, you may use the managerFilePatterns config option to let Renovate update these files:

{
  "kotlin-script": {
    "managerFilePatterns": ["/^.*\\.kts$/"]
  }
}