Skip to content
Snippets Groups Projects
Select Git revision
  • d60fc9ccdce36c68c974d77596f68b2058a0fad3
  • main default protected
  • renovate/redis-21.x
  • renovate/docker.io-library-nextcloud-31.x
  • renovate/hcloud-exporter-4.x
  • renovate/rancher-system-upgrade-controller-0.x
  • renovate/ghcr.io-mastodon-mastodon-4.x
  • renovate/docker.io-bitnami-kubectl-1.x
  • renovate/mikefarah-yq-4.x
  • renovate/mariadb-21.x
  • renovate/quay.io-shivering-isles-koolbox-2025.x
  • renovate/go-1.x
  • renovate/fluxcd-flux2-2.x
  • renovate/prometheus-json-exporter-0.x
  • renovate/amd-gpu-0.x
  • renovate/github.com-prometheus-common-0.x
  • renovate/siderolabs-kubelet-1.33.x
  • renovate/kubernetes-go
  • renovate/external-snapshotter-8.x
  • renovate/gcr.io-projectsigstore-cosign-2.x
  • renovate/kubernetes-sigs-cluster-api-1.x
  • v25.07
  • v25.06
  • v25.05
  • v25.04
  • v25.03
  • v25.02
  • v25.01
  • v24.12
  • v24.11
  • v24.10
  • v24.09
  • v24.08
  • v24.07
  • v24.06
  • v24.05
  • v24.04
  • v24.03
  • v24.02
  • v24.01
  • v23.12
41 results

docs

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