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

Could not determine the dependencies of task ':main:ktlint'. #100

Closed
VladimirWrites opened this issue Nov 13, 2017 · 1 comment
Closed

Comments

@VladimirWrites
Copy link

When calling ./gradlew ktlint I am getting the following error:

* What went wrong:
Could not determine the dependencies of task ':main:ktlint'.
> Could not resolve all dependencies for configuration ':main:ktlint'.
   > A conflict was found between the following modules:
      - org.eclipse.aether:aether-api:1.1.0
      - org.eclipse.aether:aether-api:1.0.0.v20140518

The only way for me to solve it is to add:

resolutionStrategy.force "org.eclipse.aether:aether-api:1.1.0"
resolutionStrategy.force "org.eclipse.aether:aether-spi:1.1.0"
resolutionStrategy.force "org.eclipse.aether:aether-util:1.1.0"
resolutionStrategy.force "org.eclipse.aether:aether-impl:1.1.0"

to my build.gradle file. After that dependencies look like this:

ktlint
\--- com.github.shyiko:ktlint:0.12.0
     +--- com.github.shyiko.ktlint:ktlint-core:0.12.0
     |    \--- org.jetbrains.kotlin:kotlin-compiler-embeddable:1.1.51
     +--- com.github.shyiko.ktlint:ktlint-ruleset-standard:0.12.0
     +--- com.github.shyiko.ktlint:ktlint-reporter-plain:0.12.0
     +--- com.github.shyiko.ktlint:ktlint-reporter-json:0.12.0
     +--- com.github.shyiko.ktlint:ktlint-reporter-checkstyle:0.12.0
     +--- com.github.shyiko.klob:klob:0.2.0
     +--- org.ini4j:ini4j:0.5.4
     +--- org.apache.maven:maven-aether-provider:3.2.5
     |    +--- org.apache.maven:maven-model:3.2.5
     |    |    \--- org.codehaus.plexus:plexus-utils:3.0.20
     |    +--- org.apache.maven:maven-model-builder:3.2.5
     |    |    +--- org.codehaus.plexus:plexus-utils:3.0.20
     |    |    +--- org.codehaus.plexus:plexus-interpolation:1.21
     |    |    +--- org.codehaus.plexus:plexus-component-annotations:1.5.5
     |    |    \--- org.apache.maven:maven-model:3.2.5 (*)
     |    +--- org.apache.maven:maven-repository-metadata:3.2.5
     |    |    \--- org.codehaus.plexus:plexus-utils:3.0.20
     |    +--- org.eclipse.aether:aether-api:1.0.0.v20140518 -> 1.1.0
     |    +--- org.eclipse.aether:aether-spi:1.0.0.v20140518 -> 1.1.0
     |    |    \--- org.eclipse.aether:aether-api:1.1.0
     |    +--- org.eclipse.aether:aether-util:1.0.0.v20140518 -> 1.1.0
     |    |    \--- org.eclipse.aether:aether-api:1.1.0
     |    +--- org.eclipse.aether:aether-impl:1.0.0.v20140518 -> 1.1.0
     |    |    +--- org.eclipse.aether:aether-api:1.1.0
     |    |    +--- org.eclipse.aether:aether-spi:1.1.0 (*)
     |    |    \--- org.eclipse.aether:aether-util:1.1.0 (*)
     |    +--- org.codehaus.plexus:plexus-component-annotations:1.5.5
     |    \--- org.codehaus.plexus:plexus-utils:3.0.20
     +--- com.google.guava:guava:18.0 -> 22.0-android
     |    +--- com.google.code.findbugs:jsr305:1.3.9 -> 3.0.1
     |    +--- com.google.errorprone:error_prone_annotations:2.0.18
     |    +--- com.google.j2objc:j2objc-annotations:1.1
     |    \--- org.codehaus.mojo:animal-sniffer-annotations:1.14
     +--- org.eclipse.aether:aether-api:1.1.0
     +--- org.eclipse.aether:aether-spi:1.1.0 (*)
     +--- org.eclipse.aether:aether-util:1.1.0 (*)
     +--- org.eclipse.aether:aether-impl:1.1.0 (*)
     +--- org.eclipse.aether:aether-connector-basic:1.1.0
     |    +--- org.eclipse.aether:aether-api:1.1.0
     |    +--- org.eclipse.aether:aether-spi:1.1.0 (*)
     |    \--- org.eclipse.aether:aether-util:1.1.0 (*)
     +--- org.eclipse.aether:aether-transport-file:1.1.0
     |    +--- org.eclipse.aether:aether-api:1.1.0
     |    +--- org.eclipse.aether:aether-spi:1.1.0 (*)
     |    \--- org.eclipse.aether:aether-util:1.1.0 (*)
     +--- org.eclipse.aether:aether-transport-http:1.1.0
     |    +--- org.eclipse.aether:aether-api:1.1.0
     |    +--- org.eclipse.aether:aether-spi:1.1.0 (*)
     |    +--- org.eclipse.aether:aether-util:1.1.0 (*)
     |    +--- org.apache.httpcomponents:httpclient:4.3.5
     |    |    +--- org.apache.httpcomponents:httpcore:4.3.2
     |    |    \--- commons-codec:commons-codec:1.6
     |    \--- org.slf4j:jcl-over-slf4j:1.6.2
     |         \--- org.slf4j:slf4j-api:1.6.2
     +--- org.slf4j:slf4j-nop:1.6.2
     |    \--- org.slf4j:slf4j-api:1.6.2
     \--- args4j:args4j:2.33

Is there any nicer solution to this problem?

@shyiko
Copy link
Collaborator

shyiko commented Nov 13, 2017

@vlad1m1r990 thanks for the ticket. Fixed (hopefully) in 0.12.1 (Maven Central sync might take up to 25 minutes) (please let me know if it's not 🙇‍♂️)

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

2 participants