Skip to content

Commit

Permalink
Add kotlin script documentation in Readme
Browse files Browse the repository at this point in the history
xgouchet committed Oct 10, 2023
1 parent 99c5869 commit 54d3d8a
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -32,6 +32,8 @@ datadog {

If you're using variants, you can set a custom configuration per variant using the following syntax.

#### Groovy

```groovy
datadog {
site = "US1" // Variants with no configurations will use this as default
@@ -44,6 +46,20 @@ datadog {
}
```

#### Kotlin Script

```kotlin
datadog {
site = "US1" // Variants with no configurations will use this as default
variants {
register("fr") {
site = "EU1"
mappingFilePath = "path/to/fr/mapping.txt"
}
}
}
```

### Gradle configuration cache support

This plugin supports [Gradle configuration cache](https://docs.gradle.org/7.1/userguide/configuration_cache.html) starting from the version `1.1.0`, but to have this support you need to disable SDK dependency check by setting `checkProjectDependencies` to `none`:

0 comments on commit 54d3d8a

Please sign in to comment.