Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 5 commits into from Feb 10, 2023
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
16 changes: 6 additions & 10 deletions lib/modules/manager/kotlin-script/readme.md
@@ -1,11 +1,6 @@
---
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.
These are self-contained scripts where one can write Kotlin code with JVM backend, and compilation happens when the
scripts are ran. For example:
These are self-contained scripts where one can write Kotlin code with JVM backend, and compilation happens when the scripts are ran.
HonkingGoose marked this conversation as resolved.
Show resolved Hide resolved
For example:

```kotlin
#!/usr/bin/env kotlin
Expand All @@ -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
files that have `.gradle.kts` extension. As there are cases where just `.kts` extension or no extension is used,
Renovate can be [configured](https://docs.renovatebot.com/configuration-options/) to scan also these:
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 have Kotlin Script files not matching the default filter, you may use the `fileMatch` config option to let Renovate find such files:
HonkingGoose marked this conversation as resolved.
Show resolved Hide resolved

```json
{
Expand Down