Skip to content

Fixes #1514. Enable latest SNAPSHOT option by default#2313

Merged
eed3si9n merged 4 commits into0.13from
wip/refix-snapshots
Dec 30, 2015
Merged

Fixes #1514. Enable latest SNAPSHOT option by default#2313
eed3si9n merged 4 commits into0.13from
wip/refix-snapshots

Conversation

@eed3si9n
Copy link
Member

Fixes #1514
Fixes #1616
#1520 originally fixed #1514 by reimplementing part of chain resolver to check all resolvers to find the latest snapshot artifacts. This behavior did not work well:

  1. with Maven repositories where sbt was failing to calculate the correct publication dates.
  2. with module doesn't have any artifacts (parent POMs). Maven local resolver with parent POM #1616
    Fixes #2005. Bump to ivy 2.3.0-sbt-c5d1b95fdcc1e1007740ffbecf4eb07abc… #2075 should fix the publication date issue, and we should enable this flag back again. 1bf789e fixes the module without artifacts.

The build user can opt out by:

updateOptions := updateOptions.value.withLatestSnapshots(false)

/review @jsuereth, @dwijnand, @Duhemm

#1520 originally fixed #1514 by reimplementing part of chain resolver
to check all resolvers to find the latest snapshot artifacts.
This behavior did not work well with Maven repositories where sbt was
failing to calculate the correct publication dates.
Now that #2075 fixes the Maven integration issue we should enable this
flag back again.

The build user can opt out by:

    updateOptions := updateOptions.value.withLatestSnapshots(false)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why the commented out code?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This option has gone back and forth, so I am leaving that in in case we're going to default it to false again.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

alright

@dwijnand
Copy link
Member

LGTM asides from the minor commented code comment

The "latest snapshot" chain resolver was assuming that there's at least
one artifact per module. I think that was the root cause of #1616.
@eed3si9n eed3si9n added this to the 0.13.10 milestone Dec 30, 2015
eed3si9n added a commit that referenced this pull request Dec 30, 2015
Fixes #1514. Enable latest SNAPSHOT option by default
@eed3si9n eed3si9n merged commit bfb602c into 0.13 Dec 30, 2015
@eed3si9n eed3si9n deleted the wip/refix-snapshots branch December 30, 2015 15:31
@eed3si9n eed3si9n mentioned this pull request Jan 7, 2016
7 tasks
@eed3si9n eed3si9n mentioned this pull request Feb 26, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants