File tree 5 files changed +0
-35
lines changed
plugin/main/src/kotlinx/benchmark/gradle
5 files changed +0
-35
lines changed Original file line number Diff line number Diff line change @@ -19,7 +19,6 @@ class BenchmarksPlugin : Plugin<Project> {
19
19
const val BENCHMARK_EXEC_SUFFIX = " Benchmark"
20
20
const val BENCHMARK_COMPILATION_NAME = " benchmark"
21
21
22
- const val RUNTIME_DEPENDENCY_BASE = " kotlinx.benchmark:runtime"
23
22
const val JMH_CORE_DEPENDENCY = " org.openjdk.jmh:jmh-core"
24
23
const val JMH_GENERATOR_DEPENDENCY = " org.openjdk.jmh:jmh-generator-bytecode:"
25
24
Original file line number Diff line number Diff line change @@ -7,8 +7,6 @@ fun Project.processJsCompilation(target: JsBenchmarkTarget) {
7
7
project.logger.info(" Configuring benchmarks for '${target.name} ' using Kotlin/JS" )
8
8
val compilation = target.compilation
9
9
10
- configureMultiplatformJsCompilation(target)
11
-
12
10
createJsBenchmarkGenerateSourceTask(target, compilation)
13
11
14
12
val benchmarkCompilation = createJsBenchmarkCompileTask(target)
@@ -66,12 +64,3 @@ private fun Project.createJsBenchmarkGenerateSourceTask(
66
64
outputSourcesDir = file(" $benchmarkBuildDir /sources" )
67
65
}
68
66
}
69
-
70
- private fun Project.configureMultiplatformJsCompilation (target : JsBenchmarkTarget ) {
71
- // Add runtime library as an implementation dependency to the specified compilation
72
- val runtime = dependencies.create(" ${BenchmarksPlugin .RUNTIME_DEPENDENCY_BASE } -js:${target.extension.version} " )
73
-
74
- target.compilation.dependencies {
75
- // implementation(runtime)
76
- }
77
- }
Original file line number Diff line number Diff line change @@ -36,7 +36,6 @@ private fun Project.configureJmhDependency(target: JavaBenchmarkTarget) {
36
36
37
37
// Add dependency to JMH core library to the source set designated by config.name
38
38
val jmhCore = dependencies.create(" ${BenchmarksPlugin .JMH_CORE_DEPENDENCY } :${target.jmhVersion} " )
39
- val runtimeJvm = dependencies.create(" ${BenchmarksPlugin .RUNTIME_DEPENDENCY_BASE } -jvm:${target.extension.version} " )
40
39
val configurationRoot = " implementation"
41
40
42
41
val dependencyConfiguration = if (target.name == " main" )
@@ -45,5 +44,4 @@ private fun Project.configureJmhDependency(target: JavaBenchmarkTarget) {
45
44
" ${target.name}${configurationRoot.capitalize()} "
46
45
47
46
dependencies.add(dependencyConfiguration, jmhCore)
48
- // dependencies.add(dependencyConfiguration, runtimeJvm)
49
47
}
Original file line number Diff line number Diff line change @@ -27,11 +27,7 @@ private fun Project.configureMultiplatformJvmCompilation(target: KotlinJvmBenchm
27
27
// Add JMH core library as an implementation dependency to the specified compilation
28
28
val jmhCore = dependencies.create(" ${BenchmarksPlugin .JMH_CORE_DEPENDENCY } :${target.jmhVersion} " )
29
29
30
- // Add runtime library as an implementation dependency to the specified compilation
31
- val runtime = dependencies.create(" ${BenchmarksPlugin .RUNTIME_DEPENDENCY_BASE } -jvm:${target.extension.version} " )
32
-
33
30
target.compilation.dependencies {
34
31
implementation(jmhCore)
35
- // implementation(runtime)
36
32
}
37
33
}
Original file line number Diff line number Diff line change @@ -14,8 +14,6 @@ fun Project.processNativeCompilation(target: NativeBenchmarkTarget) {
14
14
}
15
15
16
16
project.logger.info(" Configuring benchmarks for '${target.name} ' using Kotlin/Native" )
17
-
18
- configureMultiplatformNativeCompilation(target, compilation)
19
17
20
18
createNativeBenchmarkGenerateSourceTask(target)
21
19
@@ -141,18 +139,3 @@ open class NativeBenchmarkExec : Exec() {
141
139
var filter: String? = null
142
140
*/
143
141
}
144
-
145
- private fun Project.configureMultiplatformNativeCompilation (
146
- target : NativeBenchmarkTarget ,
147
- compilation : KotlinNativeCompilation
148
- ) {
149
- val konanTarget = compilation.target.konanTarget
150
-
151
- // Add runtime library as an implementation dependency to the specified compilation
152
- val runtime =
153
- dependencies.create(" ${BenchmarksPlugin .RUNTIME_DEPENDENCY_BASE } -${konanTarget.presetName} :${target.extension.version} " )
154
-
155
- compilation.dependencies {
156
- // implementation(runtime)
157
- }
158
- }
You can’t perform that action at this time.
0 commit comments