Skip to content

Commit 07becbc

Browse files
Abduqodiri Qurbonzodaqurbonzoda
authored andcommitted
Replace deprecated defaultSourceSetName with defaultSourceSet.name
1 parent 30073f6 commit 07becbc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

plugin/main/src/kotlinx/benchmark/gradle/BenchmarksExtension.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ open class BenchmarksExtension(val project: Project) {
5353
val target = multiplatform.targets.findByName(name)
5454
// We allow the name to be either a target or a source set
5555
when (val compilation = target?.compilations?.findByName(KotlinCompilation.MAIN_COMPILATION_NAME)
56-
?: multiplatform.targets.flatMap { it.compilations }.find { it.defaultSourceSetName == name }) {
56+
?: multiplatform.targets.flatMap { it.compilations }.find { it.defaultSourceSet.name == name }) {
5757
null -> {
5858
project.logger.warn("Warning: Cannot find a benchmark compilation '$name', ignoring.")
5959
BenchmarkTarget(this, name) // ignore

0 commit comments

Comments
 (0)