Skip to content

Commit 2a11b0d

Browse files
author
Abduqodiri Qurbonzoda
committed
[Plugin] Replace deprecated classifier with archiveClassifier
1 parent e4cf371 commit 2a11b0d

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ fun Project.createJvmBenchmarkCompileTask(target: JvmBenchmarkTarget, compileCla
2929
group = BenchmarksPlugin.BENCHMARKS_TASK_GROUP
3030
description = "Build JAR for JMH compiled files for '${target.name}'"
3131
dependsOn("${target.name}${BenchmarksPlugin.BENCHMARK_COMPILE_SUFFIX}")
32-
conventionMapping.map("classifier") { "JMH" }
32+
archiveClassifier.set("JMH")
3333
manifest.attributes["Main-Class"] = "org.openjdk.jmh.Main"
3434

3535
duplicatesStrategy = DuplicatesStrategy.WARN
@@ -66,7 +66,6 @@ fun Project.createJmhGenerationRuntimeConfiguration(name: String, jmhVersion: St
6666
description = "JMH Generator Runtime Configuration for '$name'"
6767

6868
val dependencies = this@createJmhGenerationRuntimeConfiguration.dependencies
69-
@Suppress("UnstableApiUsage")
7069
(defaultDependencies {
7170
it.add(dependencies.create("${BenchmarksPlugin.JMH_GENERATOR_DEPENDENCY}$jmhVersion"))
7271
})

0 commit comments

Comments
 (0)