Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

0.26 have resolution issues #352

Closed
Tolriq opened this issue Oct 12, 2019 · 11 comments
Closed

0.26 have resolution issues #352

Tolriq opened this issue Oct 12, 2019 · 11 comments

Comments

@Tolriq
Copy link

Tolriq commented Oct 12, 2019

After updating from 0.25 to 0.26 the plugin returns wrong informations don't really know what you require to investigate.

For example it now returns :

The following dependencies have later release versions:
 - androidx.arch.core:core-common [2.0.0 -> 2.1.0]
     https://developer.android.com/topic/libraries/architecture/index.html

When I do already use 2.1.0 and it's properly resolved by gradle at compile time.

Even stranger is that when using grade dependencies there's never a reference to version 2.0.0
All are correctly set to 2.1.0
+--- androidx.arch.core:core-common:{strictly 2.1.0} -> 2.1.0 (c)
The only other version is 2.0.1 that is correctly overiden.

|    |    |    |    |    \--- androidx.savedstate:savedstate:1.0.0
|    |    |    |    |         +--- androidx.annotation:annotation:1.1.0
|    |    |    |    |         +--- androidx.arch.core:core-common:2.0.1 -> 2.1.0 (*)
@technoir42
Copy link

technoir42 commented Oct 12, 2019

I have this error after updating to 0.26:

Failed to determine the latest version for the following dependencies (use --info for details):
 - com.squareup.moshi:moshi
     1.8.0
The exception that is the cause of unresolved state: org.gradle.internal.resolve.ModuleVersionNotFoundException: Could not find com.squareup.moshi:moshi:1.9.0-SNAPSHOT.
Searched in the following locations:
  - https://dl.google.com/dl/android/maven2/com/squareup/moshi/moshi/1.9.0-SNAPSHOT/maven-metadata.xml
  - https://dl.google.com/dl/android/maven2/com/squareup/moshi/moshi/1.9.0-SNAPSHOT/moshi-1.9.0-SNAPSHOT.pom
  - https://dl.google.com/dl/android/maven2/com/squareup/moshi/moshi/1.9.0-SNAPSHOT/moshi-1.9.0-SNAPSHOT.jar
  - https://repo.maven.apache.org/maven2/com/squareup/moshi/moshi/1.9.0-SNAPSHOT/maven-metadata.xml
  - https://repo.maven.apache.org/maven2/com/squareup/moshi/moshi/1.9.0-SNAPSHOT/moshi-1.9.0-SNAPSHOT.pom
  - https://repo.maven.apache.org/maven2/com/squareup/moshi/moshi/1.9.0-SNAPSHOT/moshi-1.9.0-SNAPSHOT.jar
  - https://jcenter.bintray.com/com/squareup/moshi/moshi/1.9.0-SNAPSHOT/maven-metadata.xml
  - https://jcenter.bintray.com/com/squareup/moshi/moshi/1.9.0-SNAPSHOT/moshi-1.9.0-SNAPSHOT.pom
  - https://jcenter.bintray.com/com/squareup/moshi/moshi/1.9.0-SNAPSHOT/moshi-1.9.0-SNAPSHOT.jar
  - https://dl.bintray.com/sch/maven/com/squareup/moshi/moshi/1.9.0-SNAPSHOT/maven-metadata.xml
  - https://dl.bintray.com/sch/maven/com/squareup/moshi/moshi/1.9.0-SNAPSHOT/moshi-1.9.0-SNAPSHOT.pom
  - https://dl.bintray.com/sch/maven/com/squareup/moshi/moshi/1.9.0-SNAPSHOT/moshi-1.9.0-SNAPSHOT.jar
  - https://jitpack.io/com/squareup/moshi/moshi/1.9.0-SNAPSHOT/maven-metadata.xml
  - https://jitpack.io/com/squareup/moshi/moshi/1.9.0-SNAPSHOT/moshi-1.9.0-SNAPSHOT.pom
  - https://jitpack.io/com/squareup/moshi/moshi/1.9.0-SNAPSHOT/moshi-1.9.0-SNAPSHOT.jar
Required by:
    project :app

I'm using com.squareup.moshi:moshi:1.9.0-SNAPSHOT in the project.
It comes from this repository:

maven {
    url "https://oss.sonatype.org/content/repositories/snapshots/"
    mavenContent {
        snapshotsOnly()
    }
    content {
        includeGroup "com.squareup.moshi"
    }
}

Version 0.25 reported this instead:

The following dependencies exceed the version found at the milestone revision level:
 - com.squareup.moshi:moshi [1.9.0-SNAPSHOT <- 1.8.0]
     https://github.com/square/moshi

@technoir42
Copy link

Error 2:

 - org.jetbrains.trove4j:trove4j
The exception that is the cause of unresolved state: org.gradle.internal.resolve.ModuleVersionNotFoundException: Could not find any matches for org.jetbrains.trove4j:trove4j:+ as no versions of org.jetbrains.trove4j:trove4j are available.
Searched in the following locations:
  - https://dl.google.com/dl/android/maven2/org/jetbrains/trove4j/trove4j/maven-metadata.xml
  - https://dl.google.com/dl/android/maven2/org/jetbrains/trove4j/trove4j/
  - https://repo.maven.apache.org/maven2/org/jetbrains/trove4j/trove4j/maven-metadata.xml
  - https://repo.maven.apache.org/maven2/org/jetbrains/trove4j/trove4j/
  - https://jcenter.bintray.com/org/jetbrains/trove4j/trove4j/maven-metadata.xml
  - https://dl.bintray.com/sch/maven/org/jetbrains/trove4j/trove4j/maven-metadata.xml
  - https://dl.bintray.com/sch/maven/org/jetbrains/trove4j/trove4j/
  - https://jitpack.io/org/jetbrains/trove4j/trove4j/maven-metadata.xml
  - https://jitpack.io/org/jetbrains/trove4j/trove4j/
Required by:
    project :app

Should have been found here https://jcenter.bintray.com/org/jetbrains/trove4j/trove4j/

@ben-manes
Copy link
Owner

Can you please provide minimal build files to debug with? The addition of evaluating dependency constraints seemed like a low impact value add so this is surprising and unfortunate.

@Tolriq
Copy link
Author

Tolriq commented Oct 14, 2019

Tried to reproduce on a new app and can't, probably tied to tons of modules and everything, but I define all versions in a common place, so no idea how to move forward on reproduction :(

@ben-manes
Copy link
Owner

Can you strip away the code and private details (like credentials) to a shareable build?

@technoir42
Copy link

You can try to debug on this project https://github.com/plastiqueapp/plastique, just change the version to 0.26.0 in the root build.gradle.

@ben-manes
Copy link
Owner

Thanks, I reproduced the problem. I won't have time to debug much in the short-term.

@anuraaga can you also take a look when you have time?

@anuraaga
Copy link
Collaborator

Thanks for the report and repro! I have an idea of what the issue is will take a look.

@ben-manes
Copy link
Owner

@Tolriq can you try using the version in #353 (with and without constraints enabled)? You can run ./gradlew install and then reference it if you add mavelLocal() as a plugin repository. If the fix from @anuraaga looks good to you, we'll make a release.

@Tolriq
Copy link
Author

Tolriq commented Oct 15, 2019

@ben-manes that version works without -DcheckConstraints and show the same issue with -DcheckConstraints so default behavior is properly restored thanks.

@ben-manes
Copy link
Owner

Fixed, will release shortly.

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

No branches or pull requests

4 participants