renovate/lib/modules/manager/kotlin-script
2022-07-26 13:37:34 +02:00
..
__fixtures__ feat(manager): add support for Kotlin Script (#16684) 2022-07-26 13:37:34 +02:00
extract.spec.ts feat(manager): add support for Kotlin Script (#16684) 2022-07-26 13:37:34 +02:00
extract.ts feat(manager): add support for Kotlin Script (#16684) 2022-07-26 13:37:34 +02:00
index.spec.ts feat(manager): add support for Kotlin Script (#16684) 2022-07-26 13:37:34 +02:00
index.ts feat(manager): add support for Kotlin Script (#16684) 2022-07-26 13:37:34 +02:00
readme.md feat(manager): add support for Kotlin Script (#16684) 2022-07-26 13:37:34 +02:00

title description
Kotlin Script dependency versions Kotlin Script dependency versions support in Renovate

Renovate supports upgrading dependencies in Kotlin Script files. These are self-contained scripts where one can write Kotlin code with JVM backend, and compilation happens when the scripts are ran. 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 scans files only with .main.kts extension and not .kts, to avoid ambiguity with Gradle config files that have .gradle.kts extension. As there are cases where just .kts extension or no extension is used, Renovate can be configured to scan also these:

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