Skip to content
Snippets Groups Projects
Unverified Commit f885dc03 authored by HonkingGoose's avatar HonkingGoose Committed by GitHub
Browse files

docs(kotlin-script): remove metadata, rewrite (#20192)


Co-authored-by: default avatarRhys Arkins <rhys@arkins.net>
parent a91ca62b
No related merge requests found
---
title: Kotlin Script dependency versions
description: Kotlin Script dependency versions support in Renovate
---
Renovate supports upgrading dependencies in [Kotlin Script](https://github.com/Kotlin/KEEP/blob/master/proposals/scripting-support.md) files. Renovate supports upgrading dependencies in [Kotlin Script](https://github.com/Kotlin/KEEP/blob/master/proposals/scripting-support.md) files.
These are self-contained scripts where one can write Kotlin code with JVM backend, and compilation happens when the Read the [Kotlin Script docs](https://kotlinlang.org/docs/custom-script-deps-tutorial.html) to learn more.
scripts are ran. For example: For example:
```kotlin ```kotlin
#!/usr/bin/env kotlin #!/usr/bin/env kotlin
...@@ -19,9 +14,10 @@ println("Hello world!") ...@@ -19,9 +14,10 @@ println("Hello world!")
// ... // ...
``` ```
By default, Renovate scans files only with `.main.kts` extension and not `.kts`, to avoid ambiguity with Gradle config By default, Renovate only scans files with the `.main.kts` extension and not `.kts`.
files that have `.gradle.kts` extension. As there are cases where just `.kts` extension or no extension is used, This way Renovate avoids ambiguity with Gradle config files that use the `.gradle.kts` extension.
Renovate can be [configured](https://docs.renovatebot.com/configuration-options/) to scan also these:
If you want to manage other Kotlin Script files, you may use the `fileMatch` config option to let Renovate update these files:
```json ```json
{ {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment