Skip to content

Commit 6fa96b8

Browse files
authored
Merge pull request #108 from retronym/topic/bumpity
Bump SBT and SBT plugin versions
2 parents 76f6aaa + 658ff5b commit 6fa96b8

File tree

4 files changed

+7
-18
lines changed

4 files changed

+7
-18
lines changed

build.sbt

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -96,15 +96,10 @@ 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.25"
101-
10299
def addJmh(project: Project): Project = {
103100
// IntelliJ SBT project import doesn't like sbt-jmh's default setup, which results the prod and test
104101
// output paths overlapping. This is because sbt-jmh declares the `jmh` config as extending `test`, but
105102
// configures `classDirectory in Jmh := classDirectory in Compile`.
106-
project.enablePlugins(JmhPlugin).overrideConfigs(JmhConfig.extend(Compile)).settings(
107-
version in Jmh := jmhV
108-
)
103+
project.enablePlugins(JmhPlugin).overrideConfigs(JmhConfig.extend(Compile))
109104
}
110105

project/Profilers.scala

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,10 @@ case object jfr extends Profiler("jfr") {
4040
sealed abstract class async(event: String) extends Profiler("async-" + event) {
4141
val framebuf = 33554432
4242
def command(outDir: File): String = {
43-
s"""-prof "async:dir=${outDir.getAbsolutePath};libPath=${System.getenv("ASYNC_PROFILER_DIR")}/build/libasyncProfiler.so;minwidth=1;width=1800;verbose=true;event=$event;filter=${event == "wall"};flat=40;trace=10;framebuf=${framebuf};output=flamegraph,jfr,text" """
44-
} // + ";simplename=true" TODO add this after upgrading next sbt-jmh release
43+
val r = s"""-prof "async:dir=${outDir.getAbsolutePath};libPath=${System.getenv("ASYNC_PROFILER_DIR")}/build/libasyncProfiler.so;minwidth=1;width=1800;verbose=true;event=$event;filter=${event == "wall"};flat=40;trace=10;framebuf=${framebuf};output=flamegraph,jfr,text" """
44+
println(r)
45+
r
46+
}
4547
}
4648
case object asyncCpu extends async("cpu")
4749
case object asyncAlloc extends async("alloc")

project/build.sbt

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1 @@
1-
val jmhV = "1.25" // 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-
91
resolvers in Global += Resolver.mavenLocal

project/plugins.sbt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
logLevel := Level.Warn
33

44
// sbt-jmh plugin - pulls in JMH dependencies too
5-
addSbtPlugin("pl.project13.scala" % "sbt-jmh" % "0.3.7")
5+
addSbtPlugin("pl.project13.scala" % "sbt-jmh" % "0.4.0")
66

77
// sbt-dotty plugin - to support `scalaVersion := "0.x"`
8-
addSbtPlugin("ch.epfl.lamp" % "sbt-dotty" % "0.4.0")
8+
addSbtPlugin("ch.epfl.lamp" % "sbt-dotty" % "0.4.2")

0 commit comments

Comments
 (0)