File tree Expand file tree Collapse file tree 3 files changed +2
-6
lines changed
plugin/main/src/kotlinx/benchmark/gradle Expand file tree Collapse file tree 3 files changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -7,8 +7,4 @@ plugins {
77
88repositories {
99 mavenCentral()
10- }
11-
12- kotlinDslPluginOptions {
13- experimentalWarning.set(false )
1410}
Original file line number Diff line number Diff 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
Original file line number Diff line number Diff line change @@ -45,7 +45,7 @@ private fun Project.getExecutableFile(compilation: KotlinJsCompilation): Provide
4545 val destinationDir = binary.linkSyncTask.map { it.destinationDir }
4646 destinationDir.zip(outputFile) { dir, file -> dir.resolve(file.name) }
4747 }
48- else -> compilation.compileKotlinTaskProvider .flatMap { it.outputFileProperty }
48+ else -> compilation.compileTaskProvider .flatMap { it.outputFileProperty }
4949 }
5050 return project.layout.file(executableFile)
5151}
You can’t perform that action at this time.
0 commit comments