Skip to content

Commit 3e68a02

Browse files
committed
Make JMH version externally configurable with sbt -Djmh.version=1.31-SNAPSHOT
1 parent 90f1b17 commit 3e68a02

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

build.sbt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ addCommandAlias("cold", "compilation/jmh:run ColdScalacBenchmark -foe true")
9797
commands ++= build.Profiler.commands
9898

9999
// duplicated in project/build.sbt
100-
val jmhV = "1.27"
100+
val jmhV = System.getProperty("jmh.version", "1.30")
101101

102102
def addJmh(project: Project): Project = {
103103
// IntelliJ SBT project import doesn't like sbt-jmh's default setup, which results the prod and test

project/build.sbt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
val jmhV = "1.27" // duplicated in build.sbt
1+
val jmhV = System.getProperty("jmh.version", "1.30") // duplicated in build.sbt
22

33
libraryDependencies ++= List(
44
"org.openjdk.jmh" % "jmh-core" % jmhV,

0 commit comments

Comments
 (0)