Skip to content

Commit e08eba5

Browse files
authored
Merge pull request #112 from retronym/topic/jmh-upgrade
2 parents 90f1b17 + 32ae917 commit e08eba5

File tree

5 files changed

+12
-7
lines changed

5 files changed

+12
-7
lines changed

build.sbt

Lines changed: 6 additions & 3 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(
@@ -97,7 +100,7 @@ addCommandAlias("cold", "compilation/jmh:run ColdScalacBenchmark -foe true")
97100
commands ++= build.Profiler.commands
98101

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

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

corpus/scala/21d12e9/deps.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
http://repo1.maven.org/maven2/org/scala-lang/modules/scala-asm/5.1.0-scala-2/scala-asm-5.1.0-scala-2.jar
1+
https://repo1.maven.org/maven2/org/scala-lang/modules/scala-asm/5.1.0-scala-2/scala-asm-5.1.0-scala-2.jar

corpus/scala/df29ebb/deps.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
http://repo1.maven.org/maven2/org/scala-lang/modules/scala-asm/5.1.0-scala-2/scala-asm-5.1.0-scala-2.jar
1+
https://repo1.maven.org/maven2/org/scala-lang/modules/scala-asm/5.1.0-scala-2/scala-asm-5.1.0-scala-2.jar

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,

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)