Skip to content

Commit bc4bec5

Browse files
committed
address minor depreciation warnings
1 parent 7790c7d commit bc4bec5

File tree

3 files changed

+2
-6
lines changed

3 files changed

+2
-6
lines changed

buildSrc/build.gradle.kts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,4 @@ plugins {
77

88
repositories {
99
mavenCentral()
10-
}
11-
12-
kotlinDslPluginOptions {
13-
experimentalWarning.set(false)
1410
}

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

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)