Skip to content

Commit aa51b0f

Browse files
sellmairqurbonzoda
authored andcommitted
Documentation: Update example on 'Define New Compilation'
Fixes: - Using Groovy string syntax for Kotlin - DSL scope violation of compilations
1 parent a521c0b commit aa51b0f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

docs/separate-benchmark-source-set.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,10 @@ Follow these steps to set up a separate source set for benchmarks:
2626

2727
```kotlin
2828
// build.gradle.kts
29-
kotlin {
30-
jvm {
31-
compilations.create('benchmark') {
32-
associateWith(compilations.main)
29+
kotlin {
30+
jvm {
31+
compilations.create("benchmark") {
32+
associateWith(this@jvm.compilations.getByName("main"))
3333
}
3434
}
3535
}

0 commit comments

Comments
 (0)