You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I followed the instructions here and created the following build.sbt:
name := "GlobalConfigEditor"
version := "0.3-SNAPSHOT"
scalaVersion := "2.13.1"
enablePlugins(WindowsPlugin)
val mainClassName = "globalconfig.ConfigEditorApplication"
mainClass in assembly := Some(mainClassName)
assemblyJarName in assembly := s"UniqaGlobalConfigEditor-$version.jar"
assemblyMergeStrategy in assembly := {
case PathList("META-INF", xs@_*) => MergeStrategy.discard
case PathList("reference.conf") => MergeStrategy.concat
case x => MergeStrategy.first
}
// general package information (can be scoped to Windows)
maintainer := "J. Doe <[email protected]"
packageSummary := "test-windows"
packageDescription := """Test Windows MSI."""
// wix build information
wixProductId := "ce07be71-510d-414a-92d4-dff47631848a"
wixProductUpgradeId := "4552fb0e-e257-4dbd-9ecb-dba9dbacf424"
libraryDependencies += "org.apache.commons" % "commons-lang3" % "3.9"
libraryDependencies += "commons-io" % "commons-io" % "2.6"
libraryDependencies += "ch.qos.logback" % "logback-classic" % "1.2.3"
libraryDependencies += "com.typesafe.scala-logging" % "scala-logging_2.13" % "3.9.2"
libraryDependencies += "com.typesafe.akka" %% "akka-actor-typed" % "2.6.3"
libraryDependencies += "org.scalatest" %% "scalatest" % "3.1.1" % "test"
libraryDependencies += "org.scalamock" %% "scalamock" % "4.4.0" % Test
libraryDependencies += "org.mockito" % "mockito-scala_2.13" % "1.11.3"
libraryDependencies += "org.mockito" % "mockito-scala-scalatest_2.13" % "1.11.3"
Expected behaviour
The task windows:packageBin appears in IntelliJ's sbt side-bar.
I can execute the task windows:packageBin in the sbt-shell.
Actual behaviour
The task does not appear in IntelliJ's sbt integration.
Executing the task in sbt-shell leads to the following error:
[error] stack trace is suppressed; run 'last wixProductXml' for the full output
[error] (wixProductXml) java.util.NoSuchElementException: key not found:
[error] Total time: 0 s, completed 24.03.2020 22:15:51
Executing wixProductXml leads to the following error:
For the intellij part you need to ask the IntelliJ folks for this. sbt-native-packager is no different that any other sbt plugin. The devs at IntelliJ do are really great job, but integrating with SBT is not trivial.
Regarding window:packageBin not working.
It's best to start with the Getting Started, which states that you enable an archetype, which is build configuration for a specific output application type. In most cases you do
enablePlugins(JavaAppPackaging)
which is enough.
I also noticed that you have added sbt-assembly. Usually you only need either one, sbt-native-packager or assembly.
I followed the instructions here and created the following
build.sbt
:Expected behaviour
windows:packageBin
appears in IntelliJ's sbt side-bar.windows:packageBin
in the sbt-shell.Actual behaviour
Executing
wixProductXml
leads to the following error:Information
1.7.0
1.3.8
Windows 10
Windows MSI
The text was updated successfully, but these errors were encountered: