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've noticed in a couple of my projects, when I update the application's version build.sbt. I've also noticed it will only do this when I run assembly in the SBT shell inside of IntelliJ. However, if I create a run configuration that runs assembly it does pull the latest version.
To replicate this:
Set version in build.sbt (say 1.0)
Open the SBT shell, run assembly
It should build the correct version
Change the version in build.sbt (say 1.1) and run assembly again
It will build assembly-1.0.jar instead of assembly-1.1.jar
If you run assembly in a terminal outside of IntelliJ, it will build the correct version. Also if you restart IntelliJ it will resolve the issue.
This is because in the sbt shell you need to do a reload command after changing any settings in the build.sbt. If you use a run config, restart intellij or open a shell instance, this will start a new sbt instance which loads the settings, so that is why you see it working in those cases. To relaod within the shell, just type reload or do a project refresh from IntelliJ.
Hi there,
I've noticed in a couple of my projects, when I update the application's version build.sbt. I've also noticed it will only do this when I run
assembly
in the SBT shell inside of IntelliJ. However, if I create a run configuration that runsassembly
it does pull the latest version.To replicate this:
assembly
assembly
againIf you run
assembly
in a terminal outside of IntelliJ, it will build the correct version. Also if you restart IntelliJ it will resolve the issue.SBT Plugin Version: 1.8.0
IntelliJ Version: 2017.2.5
SBT Version: 0.13.16
Assembly Version: 0.14.5
The text was updated successfully, but these errors were encountered: