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'm using sbt for a pure java project. Sources are in src/main/java and they get properly compiled and packaged by sbt's compile and package tasks. However, when I run assembly, only my dependencies (libraries) and up in the assembly jar, while the main project's classes are missing. Is this a bug? Can I work around this?
The text was updated successfully, but these errors were encountered:
Might this be related to having assembleArtifact in packageBin := false ? the docs say that excludes sources, but maybe it excludes target/classes as well?
The problem I get when I remove this setting, is that resources from src/main/resources produce an error:
I got it working now. Indeed I had duplicate properties files from a library; still, I think you need to correct in the readme assembleArtifact in packageBin := false to assembleArtifact in packageSrc := false to exclude sources?
I'm using sbt for a pure java project. Sources are in src/main/java and they get properly compiled and packaged by sbt's
compile
andpackage
tasks. However, when I runassembly
, only my dependencies (libraries) and up in the assembly jar, while the main project's classes are missing. Is this a bug? Can I work around this?The text was updated successfully, but these errors were encountered: