Skip to content

Automated Dependency Updates for Kotlin Script

Renovate supports updating Kotlin Script dependencies.

File Matching

By default, Renovate will check any files matching the following regular expression: ^.+\.main\.kts$.

For details on how to extend a manager's fileMatch value, please follow this link.

Supported datasources

This manager supports extracting the following datasources: maven.

Default config

  "fileMatch": [

Additional Information

title: Kotlin Script dependency versions description: 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

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$"]