File tree Expand file tree Collapse file tree 3 files changed +19
-15
lines changed
plugin/main/src/kotlinx/benchmark/gradle Expand file tree Collapse file tree 3 files changed +19
-15
lines changed Original file line number Diff line number Diff line change @@ -46,18 +46,20 @@ private fun Project.createJsBenchmarkCompileTask(target: JsBenchmarkTarget): Kot
46
46
)
47
47
}
48
48
49
- compileTaskProvider.get().apply {
50
- group = BenchmarksPlugin .BENCHMARKS_TASK_GROUP
51
- description = " Compile JS benchmark source files for '${target.name} '"
49
+ compileTaskProvider.configure {
50
+ it.apply {
51
+ group = BenchmarksPlugin .BENCHMARKS_TASK_GROUP
52
+ description = " Compile JS benchmark source files for '${target.name} '"
52
53
53
- // TODO: fix destination dir after KT-29711 is fixed
54
- // println("JS: ${kotlinOptions.outputFile}")
55
- // destinationDir = file("$benchmarkBuildDir/classes")
56
- dependsOn(" ${target.name}${BenchmarksPlugin .BENCHMARK_GENERATE_SUFFIX } " )
54
+ // TODO: fix destination dir after KT-29711 is fixed
55
+ // println("JS: ${kotlinOptions.outputFile}")
56
+ // destinationDir = file("$benchmarkBuildDir/classes")
57
+ dependsOn(" ${target.name}${BenchmarksPlugin .BENCHMARK_GENERATE_SUFFIX } " )
57
58
58
- kotlinOptions.apply {
59
- sourceMap = true
60
- moduleKind = " umd"
59
+ kotlinOptions.apply {
60
+ sourceMap = true
61
+ moduleKind = " umd"
62
+ }
61
63
}
62
64
}
63
65
}
Original file line number Diff line number Diff line change @@ -62,7 +62,7 @@ private fun Project.createNativeBenchmarkCompileTask(target: NativeBenchmarkTarg
62
62
// a link task. So we disable execution the klib compiling task to save time.
63
63
// benchmarkCompilation.compileKotlinTask.enabled = false
64
64
65
- benchmarkCompilation.compileTaskProvider.get() .dependsOn(generateSourceTaskName(target))
65
+ benchmarkCompilation.compileTaskProvider.configure { it .dependsOn(generateSourceTaskName(target)) }
66
66
67
67
benchmarkCompilation.apply {
68
68
val sourceSet = kotlinSourceSets.single()
Original file line number Diff line number Diff line change @@ -42,10 +42,12 @@ private fun Project.createWasmBenchmarkCompileTask(target: WasmBenchmarkTarget):
42
42
)
43
43
}
44
44
}
45
- compileTaskProvider.get().apply {
46
- group = BenchmarksPlugin .BENCHMARKS_TASK_GROUP
47
- description = " Compile Wasm benchmark source files for '${target.name} '"
48
- dependsOn(" ${target.name}${BenchmarksPlugin .BENCHMARK_GENERATE_SUFFIX } " )
45
+ compileTaskProvider.configure {
46
+ it.apply {
47
+ group = BenchmarksPlugin .BENCHMARKS_TASK_GROUP
48
+ description = " Compile Wasm benchmark source files for '${target.name} '"
49
+ dependsOn(" ${target.name}${BenchmarksPlugin .BENCHMARK_GENERATE_SUFFIX } " )
50
+ }
49
51
}
50
52
}
51
53
return benchmarkCompilation
You can’t perform that action at this time.
0 commit comments