Skip to content

sbt keen to re-download snapshot dependency on every update #1091

@paulp

Description

@paulp

steps

$ cat project/build.properties 
sbt.version=0.13.1

$ cat build.sbt
scalaVersion := "2.11.0-SNAPSHOT"

resolvers += Opts.resolver.sonatypeSnapshots

Run $ sbt clean ++2.11.0-SNAPSHOT compile multiple times.

problem

Each time scala-library.jar and scala-reflect.jar are downloaded.

original report

This is making working with scala snapshots unbearable. Maybe this will turn out to be my doing, but I'm desperate enough to ask. If this is some unfortunate default, consider the claimed bug that it is the default.

% cat build.sbt
resolvers in Global += Opts.resolver.sonatypeSnapshots

scalaVersion in Global := "2.11.0-SNAPSHOT"

libraryDependencies += "org.scala-lang" % "scala-reflect" % scalaVersion.value

% sbt update
[info] Set current project to root-2014-01-18_scala_2 (in build file:/Users/paulp/scratch/2014-01-18_scala_2/)
[info] Updating {file:/Users/paulp/scratch/2014-01-18_scala_2/}root-2014-01-18_scala_2...
[info] Resolving jline#jline;2.11 ...
[info] downloading https://oss.sonatype.org/content/repositories/snapshots/org/scala-lang/scala-library/2.11.0-SNAPSHOT/scala-library-2.11.0-20140118.024846-520.jar ...
[info]  [SUCCESSFUL ] org.scala-lang#scala-library;2.11.0-SNAPSHOT!scala-library.jar (15297ms)
[info] downloading https://oss.sonatype.org/content/repositories/snapshots/org/scala-lang/scala-reflect/2.11.0-SNAPSHOT/scala-reflect-2.11.0-20140118.024846-519.jar ...
[info]  [SUCCESSFUL ] org.scala-lang#scala-reflect;2.11.0-SNAPSHOT!scala-reflect.jar (13974ms)
[info] Done updating.
[success] Total time: 38 s, completed Jan 18, 2014 3:28:02 PM

% sbt update
[info] Set current project to root-2014-01-18_scala_2 (in build file:/Users/paulp/scratch/2014-01-18_scala_2/)
[info] Updating {file:/Users/paulp/scratch/2014-01-18_scala_2/}root-2014-01-18_scala_2...
[info] Resolving jline#jline;2.11 ...
[info] downloading https://oss.sonatype.org/content/repositories/snapshots/org/scala-lang/scala-library/2.11.0-SNAPSHOT/scala-library-2.11.0-20140118.024846-520.jar ...
[info]  [SUCCESSFUL ] org.scala-lang#scala-library;2.11.0-SNAPSHOT!scala-library.jar (18217ms)
[info] downloading https://oss.sonatype.org/content/repositories/snapshots/org/scala-lang/scala-reflect/2.11.0-SNAPSHOT/scala-reflect-2.11.0-20140118.024846-519.jar ...
[info]  [SUCCESSFUL ] org.scala-lang#scala-reflect;2.11.0-SNAPSHOT!scala-reflect.jar (16273ms)
[info] Done updating.
[success] Total time: 40 s, completed Jan 18, 2014 3:28:56 PM

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions