0
0
Fork 0
mirror of https://github.com/renovatebot/renovate.git synced 2025-05-12 15:41:58 +00:00
renovatebot_renovate/lib/modules/manager/kotlin-script
RahulGautamSingh bc7d0595d0
feat(config): managerFilePatterns (#34615)
Co-authored-by: Sebastian Poxhofer <secustor@users.noreply.github.com>
Co-authored-by: HonkingGoose <34918129+HonkingGoose@users.noreply.github.com>
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
Co-authored-by: Rhys Arkins <rhys@arkins.net>
2025-05-04 08:30:24 +00:00
..
__fixtures__ feat(manager): add support for Kotlin Script (#16684) 2022-07-26 13:37:34 +02:00
extract.spec.ts test: cleanup (#34785) 2025-03-13 17:52:09 +00:00
extract.ts refactor(prettier): Force trailing commas (#25631) 2023-11-07 15:50:29 +00:00
index.spec.ts feat(config): managerFilePatterns (#34615) 2025-05-04 08:30:24 +00:00
index.ts feat(config): managerFilePatterns (#34615) 2025-05-04 08:30:24 +00:00
readme.md feat(config): managerFilePatterns (#34615) 2025-05-04 08:30:24 +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$/"]
  }
}