Skip to content

sbt SNAPSHOT dependency with classifiers not updating #641

@mvfranz

Description

@mvfranz

I have a dependency on two jars, one with a classifier and one without. When a new SNAPSHOT version is published the jar with the classifier is not updated in my local Ivy cache.

Steps to reproduce:

  1. setup my project dependency
    libraryDependencies += "group" %% "artifactA" % "1.0.0-SNAPSHOT" withSources() classifier("test") classifier("")
  2. sbt update -- project is updated and both the jars are downloaded
  3. publish a new version of 'artifactA' (a different project)
  4. sbt update -- updated my project that has a dependency on 'artifactA'

The result is that group-artifactA_2.9.1-1.0.0-SNAPSHOT.jar is updated, but group-artifactA_2.9.1-1.0.0-SNAPSHOT-test.jar is not.

The expected result is that both jars are updated:

  • group-artifactA_2.9.1-1.0.0-SNAPSHOT.jar
  • group-artifactA_2.9.1-1.0.0-SNAPSHOT-test.jar

I have been using sbt 0.12.1. This issue has also been confirmed to to exist in 0.12.2-RC2 and the 0.13 branch.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions