Skip to content

Commit 30b057e

Browse files
authored
Invoke jmhJar as a part of build procedure to ensure that benchmarks always compile (#3019)
* Invoke jmhJar as a part of the build procedure to ensure that benchmarks always compile
1 parent 22e31b7 commit 30b057e

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

benchmarks/build.gradle.kts

+7-1
Original file line numberDiff line numberDiff line change
@@ -46,13 +46,19 @@ extensions.configure<JMHPluginExtension>("jmh") {
4646
// includeTests = false
4747
}
4848

49-
tasks.named<Jar>("jmhJar") {
49+
val jmhJarTask = tasks.named<Jar>("jmhJar") {
5050
archiveBaseName by "benchmarks"
5151
archiveClassifier by null
5252
archiveVersion by null
5353
destinationDirectory.file("$rootDir")
5454
}
5555

56+
tasks {
57+
build {
58+
dependsOn(jmhJarTask)
59+
}
60+
}
61+
5662
dependencies {
5763
implementation("org.openjdk.jmh:jmh-core:1.26")
5864
implementation("io.projectreactor:reactor-core:${version("reactor")}")

settings.gradle

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ pluginManagement {
88

99
// JMH
1010
id "net.ltgt.apt" version "0.21"
11-
id "me.champeau.gradle.jmh" version "0.5.2"
11+
id "me.champeau.gradle.jmh" version "0.5.3"
1212
}
1313

1414
repositories {

0 commit comments

Comments
 (0)