Skip to content

Commit f85843b

Browse files
authored
benchmark: clean up jmh plugin configurations (#6803)
Bump jmh plugin to version 0.5.0. Put junit and mockito to test dependency. Eliminated jmh plugin config workaround for the known issue in previous version.
1 parent 5ba663b commit f85843b

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

benchmarks/build.gradle

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,6 @@ run.enabled = false
1414

1515
jmh {
1616
jvmArgs = "-server -Xms2g -Xmx2g"
17-
// Workaround
18-
// https://github.com/melix/jmh-gradle-plugin/issues/97#issuecomment-316664026
19-
includeTests = true
2017
}
2118

2219
configurations {
@@ -30,14 +27,15 @@ dependencies {
3027
project(':grpc-stub'),
3128
project(':grpc-protobuf'),
3229
project(':grpc-testing'),
33-
libraries.junit,
34-
libraries.mockito,
3530
libraries.hdrhistogram,
3631
libraries.netty_tcnative,
3732
libraries.netty_epoll,
3833
libraries.math
3934
compileOnly libraries.javax_annotation
4035
alpnagent libraries.jetty_alpn_agent
36+
37+
testCompile libraries.junit,
38+
libraries.mockito
4139
}
4240

4341
import net.ltgt.gradle.errorprone.CheckSeverity

settings.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ pluginManagement {
77
id "com.google.protobuf" version "0.8.8"
88
id "digital.wup.android-maven-publish" version "3.6.2"
99
id "me.champeau.gradle.japicmp" version "0.2.5"
10-
id "me.champeau.gradle.jmh" version "0.4.5"
10+
id "me.champeau.gradle.jmh" version "0.5.0"
1111
id "net.ltgt.errorprone" version "0.8.1"
1212
id "ru.vyarus.animalsniffer" version "1.5.0"
1313
}

0 commit comments

Comments
 (0)