square / assertj-android

A set of AssertJ helpers geared toward testing Android.
https://square.github.io/assertj-android/
Apache License 2.0
1.58k stars 156 forks source link

Update support-annotations to 22.2.0 #164

Closed danielgomezrico closed 9 years ago

danielgomezrico commented 9 years ago

I had to include it excluding it because I got:

Warning:Conflict with dependency 'com.android.support:support-annotations'. Resolved versions for app (22.2.0) and test app (20.0.0) differ.

Then my dependencies ended like this and it compiles:

dependencies {
    compile fileTree(dir: 'libs', include: ['*.jar'])
    compile 'com.android.support:appcompat-v7:22.2.0'

    testCompile 'org.assertj:assertj-core:3.0.0'
    androidTestCompile ('com.squareup.assertj:assertj-android:1.0.0'){
        exclude group:'com.android.support', module:'support-annotations'
    }

    compile project(':core')
}

Does assertj-android needs an update on that version?

JakeWharton commented 9 years ago

This library is not going to track every release of the support annotations. That's infeasible to maintain and would be pointless on our end.

You can either do as you did and exclude the dependency, or force the version using a resolution strategy (see force).

danielgomezrico commented 9 years ago

:+1: ok thanks