Skip to content

Commit 90f1b17

Browse files
authored
Merge pull request #111 from retronym/bump/jmh-1.27
Bump JMH version 1.27
2 parents c4b2a48 + b66d032 commit 90f1b17

File tree

2 files changed

+14
-1
lines changed

2 files changed

+14
-1
lines changed

build.sbt

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,10 +96,15 @@ addCommandAlias("cold", "compilation/jmh:run ColdScalacBenchmark -foe true")
9696

9797
commands ++= build.Profiler.commands
9898

99+
// duplicated in project/build.sbt
100+
val jmhV = "1.27"
101+
99102
def addJmh(project: Project): Project = {
100103
// IntelliJ SBT project import doesn't like sbt-jmh's default setup, which results the prod and test
101104
// output paths overlapping. This is because sbt-jmh declares the `jmh` config as extending `test`, but
102105
// configures `classDirectory in Jmh := classDirectory in Compile`.
103-
project.enablePlugins(JmhPlugin).overrideConfigs(JmhConfig.extend(Compile))
106+
project.enablePlugins(JmhPlugin).overrideConfigs(JmhConfig.extend(Compile)).settings(
107+
version in Jmh := jmhV
108+
)
104109
}
105110

project/build.sbt

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,9 @@
1+
val jmhV = "1.27" // duplicated in build.sbt
2+
3+
libraryDependencies ++= List(
4+
"org.openjdk.jmh" % "jmh-core" % jmhV,
5+
"org.openjdk.jmh" % "jmh-generator-bytecode" % jmhV,
6+
"org.openjdk.jmh" % "jmh-generator-reflection" % jmhV
7+
)
8+
19
resolvers in Global += Resolver.mavenLocal

0 commit comments

Comments
 (0)