Skip to content

Commit 32ae917

Browse files
committed
Move to sbt-jmh 0.4.2
Also add extra local/snapshot resolvers to test sbt-jmh pre-releases
1 parent 76abf81 commit 32ae917

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

build.sbt

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
12
name := "compiler-benchmark"
23

34
version := "1.0-SNAPSHOT"
@@ -26,11 +27,13 @@ resolvers in ThisBuild ++= (
2627
if (scalaVersion.value.endsWith("-SNAPSHOT"))
2728
List(
2829
"pr-scala snapshots" at "https://scala-ci.typesafe.com/artifactory/scala-pr-validation-snapshots/",
29-
Resolver.mavenLocal)
30+
)
3031
else
3132
Nil
3233
)
3334

35+
resolvers in ThisBuild += Resolver.mavenLocal
36+
3437
lazy val infrastructure = addJmh(project).settings(
3538
description := "Infrastrucuture to persist benchmark results annotated with metadata from Git",
3639
autoScalaLibrary := false,
@@ -61,7 +64,7 @@ lazy val compilation = addJmh(project).settings(
6164
mainClass in (Jmh, run) := Some("scala.bench.ScalacBenchmarkRunner"),
6265
libraryDependencies += "com.novocode" % "junit-interface" % "0.11" % Test,
6366
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.
6568
).settings(addJavaOptions).dependsOn(infrastructure)
6669

6770
lazy val micro = addJmh(project).settings(

project/plugins.sbt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
// Comment to get more information during initialization
22
logLevel := Level.Warn
33

4+
resolvers += Opts.resolver.sonatypeSnapshots
5+
46
// sbt-jmh plugin - pulls in JMH dependencies too
5-
addSbtPlugin("pl.project13.scala" % "sbt-jmh" % "0.4.0")
7+
addSbtPlugin("pl.project13.scala" % "sbt-jmh" % "0.4.2")
68

79
// sbt-dotty plugin - to support `scalaVersion := "0.x"`
810
addSbtPlugin("ch.epfl.lamp" % "sbt-dotty" % "0.4.2")

0 commit comments

Comments
 (0)