|
| 1 | + |
1 | 2 | name := "compiler-benchmark" |
2 | 3 |
|
3 | 4 | version := "1.0-SNAPSHOT" |
@@ -26,11 +27,13 @@ resolvers in ThisBuild ++= ( |
26 | 27 | if (scalaVersion.value.endsWith("-SNAPSHOT")) |
27 | 28 | List( |
28 | 29 | "pr-scala snapshots" at "https://scala-ci.typesafe.com/artifactory/scala-pr-validation-snapshots/", |
29 | | - Resolver.mavenLocal) |
| 30 | + ) |
30 | 31 | else |
31 | 32 | Nil |
32 | 33 | ) |
33 | 34 |
|
| 35 | +resolvers in ThisBuild += Resolver.mavenLocal |
| 36 | + |
34 | 37 | lazy val infrastructure = addJmh(project).settings( |
35 | 38 | description := "Infrastrucuture to persist benchmark results annotated with metadata from Git", |
36 | 39 | autoScalaLibrary := false, |
@@ -61,7 +64,7 @@ lazy val compilation = addJmh(project).settings( |
61 | 64 | mainClass in (Jmh, run) := Some("scala.bench.ScalacBenchmarkRunner"), |
62 | 65 | libraryDependencies += "com.novocode" % "junit-interface" % "0.11" % Test, |
63 | 66 | testOptions in Test += Tests.Argument(TestFrameworks.JUnit), |
64 | | - fork in (Test, test) := true // jmh scoped tasks run with fork := true. |
| 67 | + fork in (Test, test) := true, // jmh scoped tasks run with fork := true. |
65 | 68 | ).settings(addJavaOptions).dependsOn(infrastructure) |
66 | 69 |
|
67 | 70 | lazy val micro = addJmh(project).settings( |
@@ -97,7 +100,7 @@ addCommandAlias("cold", "compilation/jmh:run ColdScalacBenchmark -foe true") |
97 | 100 | commands ++= build.Profiler.commands |
98 | 101 |
|
99 | 102 | // duplicated in project/build.sbt |
100 | | -val jmhV = "1.27" |
| 103 | +val jmhV = System.getProperty("jmh.version", "1.30") |
101 | 104 |
|
102 | 105 | def addJmh(project: Project): Project = { |
103 | 106 | // IntelliJ SBT project import doesn't like sbt-jmh's default setup, which results the prod and test |
|
0 commit comments