- 
                Notifications
    
You must be signed in to change notification settings  - Fork 88
 
Open
Description
Is it possible to specify javaHome per configuration? Here is a fragment of my build.sbt:
import pl.project13.scala.sbt.JmhPlugin.JmhKeys.Jmh
lazy val Corretto11 = config("corretto11") extend Jmh
lazy val Zulu11 = config("zulu11") extend Jmh
lazy val myProject = project
  .enablePlugins(JmhPlugin)
  .configs(Corretto11, Zulu11)
  .settings(
    scalaVersion := "2.13.7",
    fork := true,
    Corretto11 / javaHome := Some(file("path/to/corretto-11.0.14")),
    Zulu11 / javaHome := Some(file("path/to/azul-11.0.14"))
  )
Corretto11 / javaHome in sbt console returns the correct path but when I use Corretto11 / run it runs benchmarks with a fork of JVM used to run sbt shell instead of the one specified in javaHome.
Metadata
Metadata
Assignees
Labels
No labels