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

Problems with strict dep to okhttp3 (strictly) #999

Closed
jschneider opened this issue May 24, 2022 · 1 comment
Closed

Problems with strict dep to okhttp3 (strictly) #999

jschneider opened this issue May 24, 2022 · 1 comment
Assignees
Labels
Milestone

Comments

@jschneider
Copy link

jschneider commented May 24, 2022

Updating to org.jetbrains.intellij:1.6.0 fails for me with this error message:

   > Could not resolve com.squareup.okhttp3:okhttp:4.9.3.
     Required by:
         project : > de.fayard.buildSrcLibs:de.fayard.buildSrcLibs.gradle.plugin:0.40.1 > de.fayard.refreshVersions:buildSrcLibs:0.40.1 > de.fayard.refreshVersions:refreshVersions-core:0.40.1 > com.squareup.okhttp3:logging-interceptor:4.9.3
      > Cannot find a version of 'com.squareup.okhttp3:okhttp' that satisfies the version constraints:
           Dependency path ':neckarIT:unspecified' --> 'io.codearte.nexus-staging:io.codearte.nexus-staging.gradle.plugin:0.30.0' (runtime) --> 'io.codearte.gradle.nexus:gradle-nexus-staging-plugin:0.30.0' (runtime) --> 'com.squareup.okhttp3:okhttp:4.9.1'
           Dependency path ':neckarIT:unspecified' --> 'org.jetbrains.intellij:org.jetbrains.intellij.gradle.plugin:1.6.0' (runtime) --> 'org.jetbrains.intellij.plugins:gradle-intellij-plugin:1.6.0' (runtimeElements) --> 'com.squareup.okhttp3:okhttp:{strictly 4.4.1}'
           Dependency path ':neckarIT:unspecified' --> 'de.fayard.buildSrcLibs:de.fayard.buildSrcLibs.gradle.plugin:0.40.1' (runtime) --> 'de.fayard.refreshVersions:buildSrcLibs:0.40.1' (runtimeElements) --> 'de.fayard.refreshVersions:refreshVersions-core:0.40.1' (runtimeElements) --> 'com.squareup.okhttp3:okhttp:{require 4.9.3; reject _}'
           Dependency path ':neckarIT:unspecified' --> 'org.jetbrains.intellij:org.jetbrains.intellij.gradle.plugin:1.6.0' (runtime) --> 'org.jetbrains.intellij.plugins:gradle-intellij-plugin:1.6.0' (runtimeElements) --> 'org.jetbrains.intellij:plugin-repository-rest-client:2.0.28' (runtimeElements) --> 'com.squareup.okhttp3:okhttp:4.4.1'
           Dependency path ':neckarIT:unspecified' --> 'org.jetbrains.intellij:org.jetbrains.intellij.gradle.plugin:1.6.0' (runtime) --> 'org.jetbrains.intellij.plugins:gradle-intellij-plugin:1.6.0' (runtimeElements) --> 'com.squareup.retrofit2:retrofit:2.9.0' (runtime) --> 'com.squareup.okhttp3:okhttp:3.14.9'
           Dependency path ':neckarIT:unspecified' --> 'de.fayard.buildSrcLibs:de.fayard.buildSrcLibs.gradle.plugin:0.40.1' (runtime) --> 'de.fayard.refreshVersions:buildSrcLibs:0.40.1' (runtimeElements) --> 'de.fayard.refreshVersions:refreshVersions-core:0.40.1' (runtimeElements) --> 'com.squareup.okhttp3:logging-interceptor:4.9.3' (runtimeElements) --> 'com.squareup.okhttp3:okhttp:4.9.3'

We run into a similar issue with the refreshVersions plugin:

Splitties/refreshVersions#485

The main issue: If a gradle plugin decalres a dependency as "strictly", we will run in all sorts of issues with other plugins that have the same dependency.

I think you should either:

  • remove "strictly"
  • repackage the dependencies
  • something else...
@hsz
Copy link
Member

hsz commented May 24, 2022

Thanks, Johannes, for reporting that. Usage of strict versions helps us avoid some conflicts caused by the dependencies we use.
I'll try to solve it another way using your project as a reference.

@hsz hsz added this to the next milestone May 24, 2022
@hsz hsz self-assigned this May 24, 2022
@hsz hsz added the bug label May 24, 2022
hsz added a commit that referenced this issue Jul 1, 2022
@hsz hsz closed this as completed Jul 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants