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 {
7
7
8
8
repositories {
9
9
mavenCentral()
10
- }
11
-
12
- kotlinDslPluginOptions {
13
- experimentalWarning.set(false )
14
10
}
Original file line number Diff line number Diff line change @@ -53,7 +53,7 @@ open class BenchmarksExtension(val project: Project) {
53
53
val target = multiplatform.targets.findByName(name)
54
54
// We allow the name to be either a target or a source set
55
55
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 }) {
57
57
null -> {
58
58
project.logger.warn(" Warning: Cannot find a benchmark compilation '$name ', ignoring." )
59
59
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
45
45
val destinationDir = binary.linkSyncTask.map { it.destinationDir }
46
46
destinationDir.zip(outputFile) { dir, file -> dir.resolve(file.name) }
47
47
}
48
- else -> compilation.compileKotlinTaskProvider .flatMap { it.outputFileProperty }
48
+ else -> compilation.compileTaskProvider .flatMap { it.outputFileProperty }
49
49
}
50
50
return project.layout.file(executableFile)
51
51
}
You can’t perform that action at this time.
0 commit comments