Skip to content

Commit

Permalink
Add build.gradle.kts example
Browse files Browse the repository at this point in the history
Fixes #151
  • Loading branch information
hvisser committed Oct 16, 2024
1 parent 0dfcb91 commit fac1baa
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 5 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,13 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: Validate checksum gradle wrapper
uses: gradle/wrapper-validation-action@v1

- name: "Set up JDK 11"
uses: actions/setup-java@v2
uses: actions/setup-java@v4
with:
java-version: '11'
distribution: 'temurin'
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: Validate checksum gradle wrapper
uses: gradle/wrapper-validation-action@v1
Expand Down
22 changes: 20 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,33 @@ pluginManagement {
}
}
```

In your `build.gradle[.kts]`:
```

<details open>
<summary>build.gradle</summary>

```groovy
plugins {
id "com.github.ben-manes.versions" version "0.41.0"
id "nl.littlerobots.version-catalog-update" version "<latest version>"
}
```

</details>

<details>
<summary>build.gradle.kts</summary>

```kotlin
plugins {
id("com.github.ben-manes.versions") version "0.41.0"
id("nl.littlerobots.version-catalog-update") version "<latest version>"
}
```

</details>


When using the plugins block, the classpath dependency is `nl.littlerobots.vcu:plugin:<version>`

## Creating a `libs.versions.toml` file
Expand Down

0 comments on commit fac1baa

Please sign in to comment.