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
Asking here because I'm boycotting stack overflow.
I'm able to run my project successfully in the sbt console, but am unable to run it an assembled jar, where I'm met with the following error:
Suppressed: java.lang.NullPointerException: Cannot invoke "java.io.InputStream.close()" because "pomProperties" is null
I'm assuming that pomProperties is related to sbt-assembly and this is the behavior of some bug, but I could be incorrect, in which case I'd appreciate greatly any guidance in the right direction. For context my mergeStrategy is the following:
assemblyMergeStrategy in assembly := {
casePathList("META-INF", "versions", "9", "module-info.class") =>MergeStrategy.first
casePathList("META-INF", "io.netty.versions.properties") =>MergeStrategy.concat
casePathList("META-INF", xs @ _*) =>MergeStrategy.discard
case"application.conf"=>MergeStrategy.concat
casePathList("deriving.conf") =>MergeStrategy.concat
case"module-info.class"=>MergeStrategy.first
case x =>valoldStrategy= (assemblyMergeStrategy in assembly).value
oldStrategy(x)
}
I'm using version 2.1.5. Thanks in advance
The text was updated successfully, but these errors were encountered:
Asking here because I'm boycotting stack overflow.
I'm able to run my project successfully in the sbt console, but am unable to run it an assembled jar, where I'm met with the following error:
I'm assuming that pomProperties is related to sbt-assembly and this is the behavior of some bug, but I could be incorrect, in which case I'd appreciate greatly any guidance in the right direction. For context my mergeStrategy is the following:
I'm using version 2.1.5. Thanks in advance
The text was updated successfully, but these errors were encountered: