Skip to content

Version for jar not set properly when changed in build.sbt #121

Open
@skyler3d

Description

@skyler3d

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 runs assembly it does pull the latest version.

To replicate this:

  1. Set version in build.sbt (say 1.0)
  2. Open the SBT shell, run assembly
  3. It should build the correct version
  4. Change the version in build.sbt (say 1.1) and run assembly again
  5. 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.

SBT Plugin Version: 1.8.0
IntelliJ Version: 2017.2.5
SBT Version: 0.13.16
Assembly Version: 0.14.5

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions