Skip to content

Commit e4cf371

Browse files
author
Abduqodiri Qurbonzoda
committed
[Plugin] Replace deprecated destinationDir/main with destinationDirectory/mainClass
1 parent 9bf7cd8 commit e4cf371

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ fun Project.createJvmBenchmarkCompileTask(target: JvmBenchmarkTarget, compileCla
1919
dependsOn("${target.name}${BenchmarksPlugin.BENCHMARK_GENERATE_SUFFIX}")
2020
classpath = compileClasspath
2121
source = fileTree("$benchmarkBuildDir/sources")
22-
destinationDir = file("$benchmarkBuildDir/classes")
22+
destinationDirectory.set(file("$benchmarkBuildDir/classes"))
2323
}
2424

2525
task<Jar>(
@@ -107,7 +107,7 @@ fun Project.createJvmBenchmarkExecTask(
107107
description = "Execute benchmark for '${target.name}'"
108108

109109
val benchmarkBuildDir = benchmarkBuildDir(target)
110-
main = "kotlinx.benchmark.jvm.JvmBenchmarkRunnerKt"
110+
mainClass.set("kotlinx.benchmark.jvm.JvmBenchmarkRunnerKt")
111111

112112
if (target.workingDir != null)
113113
workingDir = File(target.workingDir)

0 commit comments

Comments
 (0)