diff --git a/src/main/scala/cloud/golem/GolemScalaPlugin.scala b/src/main/scala/cloud/golem/GolemScalaPlugin.scala index a4697c0..c767358 100644 --- a/src/main/scala/cloud/golem/GolemScalaPlugin.scala +++ b/src/main/scala/cloud/golem/GolemScalaPlugin.scala @@ -6,6 +6,7 @@ import sbt.plugins.JvmPlugin object GolemScalaPlugin extends AutoPlugin { object autoImport { + lazy val golemScalaOutputDirectory = settingKey[File]("Output directory") lazy val golemScalaWitPath = settingKey[File]("Path to the wit file") lazy val golemScalaPackageName = settingKey[String]("Package name") lazy val witBindgen = diff --git a/src/main/scala/cloud/golem/GolemScalaPluginInternal.scala b/src/main/scala/cloud/golem/GolemScalaPluginInternal.scala index 108c60e..1aa3a27 100644 --- a/src/main/scala/cloud/golem/GolemScalaPluginInternal.scala +++ b/src/main/scala/cloud/golem/GolemScalaPluginInternal.scala @@ -14,6 +14,7 @@ private[golem] object GolemScalaPluginInternal { lazy val baseSettings: Seq[Setting[?]] = Def.settings( + golemScalaOutputDirectory := (ThisBuild / target).value / s"${(ThisBuild / moduleName).value}-opt", golemScalaWitPath := (ThisBuild / baseDirectory).value / "wit", golemScalaPackageName := "main", witBindgen := {