File tree Expand file tree Collapse file tree 2 files changed +8
-18
lines changed
plugin/main/src/kotlinx/benchmark/gradle Expand file tree Collapse file tree 2 files changed +8
-18
lines changed Original file line number Diff line number Diff line change @@ -37,16 +37,12 @@ private fun Project.createJsBenchmarkCompileTask(target: JsBenchmarkTarget): Kot
37
37
sourceSet.kotlin.setSrcDirs(files(" $benchmarkBuildDir /sources" ))
38
38
sourceSet.resources.setSrcDirs(files())
39
39
40
+ associateWith(compilation)
41
+
40
42
sourceSet.dependencies {
41
- implementation(compilation.output.allOutputs)
42
43
implementation(npm(" benchmark" , " *" ))
43
44
runtimeOnly(npm(" source-map-support" , " *" ))
44
45
}
45
- project.configurations.let {
46
- it.getByName(sourceSet.implementationConfigurationName).extendsFrom(
47
- it.getByName(compilation.compileDependencyConfigurationName)
48
- )
49
- }
50
46
51
47
compileTaskProvider.configure {
52
48
it.apply {
Original file line number Diff line number Diff line change @@ -31,19 +31,13 @@ private fun Project.createWasmBenchmarkCompileTask(target: WasmBenchmarkTarget):
31
31
kotlinTarget.binaries.executable(benchmarkCompilation)
32
32
33
33
benchmarkCompilation.apply {
34
- with (kotlinSourceSets.single()) {
35
- kotlin.setSrcDirs(files(" $benchmarkBuildDir /sources" ))
36
- resources.setSrcDirs(files())
34
+ val sourceSet = kotlinSourceSets.single()
35
+
36
+ sourceSet.resources.setSrcDirs(files())
37
+ sourceSet.kotlin.setSrcDirs(files(" $benchmarkBuildDir /sources" ))
38
+
39
+ associateWith(compilation)
37
40
38
- dependencies {
39
- implementation(compilation.output.allOutputs)
40
- }
41
- project.configurations.let {
42
- it.getByName(this .implementationConfigurationName).extendsFrom(
43
- it.getByName(compilation.compileDependencyConfigurationName)
44
- )
45
- }
46
- }
47
41
compileTaskProvider.configure {
48
42
it.apply {
49
43
group = BenchmarksPlugin .BENCHMARKS_TASK_GROUP
You can’t perform that action at this time.
0 commit comments