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

issue referring to an external dependency #131

Closed
devoncarew opened this issue Sep 5, 2016 · 5 comments
Closed

issue referring to an external dependency #131

devoncarew opened this issue Sep 5, 2016 · 5 comments
Assignees

Comments

@devoncarew
Copy link

I'm trying to add a dependency on a plugin hosted in the jetbrains repo (https://plugins.jetbrains.com/update/index?pr=idea&updateId=27274), but see issues when running the gradle build:

Configuring IntelliJ IDEA gradle plugin
Configuring IntelliJ IDEA dependency
Adding IntelliJ IDEA sources repository
IntelliJ IDEA IC-162.1812.17 is used for building
Configuring IntelliJ IDEA plugin dependencies
Configuring IntelliJ plugin Dart:162.1469

FAILURE: Build failed with an exception.

* What went wrong:
A problem occurred configuring root project 'flutter-intellij'.
> Plugin Dart:162.1469 is not compatible to IC-162.1812.17

It says that the plugin dependency (Dart 162.1469) is not compatible with the IntelliJ platform I'm using (162.2.3 / 162.1812.17). But from the plugin listing, it should be compatible from 162.1121 to 162.*. The error message says is not compatible to IC-162.1812.17 - perhaps it's comparing w/o removing the platform prefix?

I'm using gradle-intellij-plugin version 1.10; thanks for any help here!

https://github.com/flutter/flutter-intellij/pull/89/files#diff-c197962302397baf3a4cc36463dce5eaR34

@zolotov
Copy link
Member

zolotov commented Sep 5, 2016

Hi @devoncarew, thank you for detailed description. I fixed the similar issue recently. Please try to use 0.2-SNAPSHOT (see README to find out how to use it).

@zolotov zolotov self-assigned this Sep 5, 2016
@devoncarew
Copy link
Author

devoncarew commented Sep 5, 2016

@zolotov, thanks for the response! I updated my gradle script based on snapshot instructions in the readme. It failed with what looks like issues locating resources. Perhaps the instructions need updating? Or I may have not updated my script correctly. Any idea when 0.2.0 would go stable?

Resource missing. [HTTP GET: https://oss.sonatype.org/content/repositories/snapshots/org/slf4j/slf4j-api/1.7.21/slf4j-api-1.7.21.pom]
Resource missing. [HTTP HEAD: https://oss.sonatype.org/content/repositories/snapshots/org/slf4j/slf4j-api/1.7.21/slf4j-api-1.7.21.jar]
Resource missing. [HTTP GET: http://dl.bintray.com/jetbrains/intellij-plugin-service/org/slf4j/slf4j-api/1.7.21/slf4j-api-1.7.21.pom]
Resource missing. [HTTP HEAD: http://dl.bintray.com/jetbrains/intellij-plugin-service/org/slf4j/slf4j-api/1.7.21/slf4j-api-1.7.21.jar]

FAILURE: Build failed with an exception.

* What went wrong:
A problem occurred configuring root project 'flutter-intellij'.
> Could not resolve all dependencies for configuration ':classpath'.
   > Could not find org.jetbrains:annotations:13.0.
     Searched in the following locations:
         https://oss.sonatype.org/content/repositories/snapshots/org/jetbrains/annotations/13.0/annotations-13.0.pom
         https://oss.sonatype.org/content/repositories/snapshots/org/jetbrains/annotations/13.0/annotations-13.0.jar
         http://dl.bintray.com/jetbrains/intellij-plugin-service/org/jetbrains/annotations/13.0/annotations-13.0.pom
         http://dl.bintray.com/jetbrains/intellij-plugin-service/org/jetbrains/annotations/13.0/annotations-13.0.jar
     Required by:
         :flutter-intellij:0.0.1 > org.jetbrains.intellij.plugins:gradle-intellij-plugin:0.2.0-SNAPSHOT
   > Could not find org.jetbrains.kotlin:kotlin-stdlib:1.0.0.
     Searched in the following locations:
         https://oss.sonatype.org/content/repositories/snapshots/org/jetbrains/kotlin/kotlin-stdlib/1.0.0/kotlin-stdlib-1.0.0.pom
         https://oss.sonatype.org/content/repositories/snapshots/org/jetbrains/kotlin/kotlin-stdlib/1.0.0/kotlin-stdlib-1.0.0.jar
         http://dl.bintray.com/jetbrains/intellij-plugin-service/org/jetbrains/kotlin/kotlin-stdlib/1.0.0/kotlin-stdlib-1.0.0.pom
         http://dl.bintray.com/jetbrains/intellij-plugin-service/org/jetbrains/kotlin/kotlin-stdlib/1.0.0/kotlin-stdlib-1.0.0.jar
     Required by:
         :flutter-intellij:0.0.1 > org.jetbrains.intellij.plugins:gradle-intellij-plugin:0.2.0-SNAPSHOT > org.jetbrains.intellij:plugin-repository-rest-client:0.3.16
   > Could not find org.slf4j:slf4j-api:1.7.21.
     Searched in the following locations:
         https://oss.sonatype.org/content/repositories/snapshots/org/slf4j/slf4j-api/1.7.21/slf4j-api-1.7.21.pom
         https://oss.sonatype.org/content/repositories/snapshots/org/slf4j/slf4j-api/1.7.21/slf4j-api-1.7.21.jar
         http://dl.bintray.com/jetbrains/intellij-plugin-service/org/slf4j/slf4j-api/1.7.21/slf4j-api-1.7.21.pom
         http://dl.bintray.com/jetbrains/intellij-plugin-service/org/slf4j/slf4j-api/1.7.21/slf4j-api-1.7.21.jar
     Required by:
         :flutter-intellij:0.0.1 > org.jetbrains.intellij.plugins:gradle-intellij-plugin:0.2.0-SNAPSHOT > org.jetbrains.intellij:plugin-repository-rest-client:0.3.16
   > Could not find com.squareup.retrofit:retrofit:1.9.0.
     Searched in the following locations:
         https://oss.sonatype.org/content/repositories/snapshots/com/squareup/retrofit/retrofit/1.9.0/retrofit-1.9.0.pom

...

https://oss.sonatype.org/content/repositories/snapshots/com/intellij/annotations/12.0/annotations-12.0.jar
         http://dl.bintray.com/jetbrains/intellij-plugin-service/com/intellij/annotations/12.0/annotations-12.0.pom
         http://dl.bintray.com/jetbrains/intellij-plugin-service/com/intellij/annotations/12.0/annotations-12.0.jar
     Required by:
         :flutter-intellij:0.0.1 > org.jetbrains.intellij.plugins:gradle-intellij-plugin:0.2.0-SNAPSHOT > org.jetbrains.intellij.plugins:intellij-plugin-structure:1.29
   > Could not find org.ow2.asm:asm-all:5.0.4.
     Searched in the following locations:
         https://oss.sonatype.org/content/repositories/snapshots/org/ow2/asm/asm-all/5.0.4/asm-all-5.0.4.pom
         https://oss.sonatype.org/content/repositories/snapshots/org/ow2/asm/asm-all/5.0.4/asm-all-5.0.4.jar
         http://dl.bintray.com/jetbrains/intellij-plugin-service/org/ow2/asm/asm-all/5.0.4/asm-all-5.0.4.pom
         http://dl.bintray.com/jetbrains/intellij-plugin-service/org/ow2/asm/asm-all/5.0.4/asm-all-5.0.4.jar
     Required by:
         :flutter-intellij:0.0.1 > org.jetbrains.intellij.plugins:gradle-intellij-plugin:0.2.0-SNAPSHOT > org.jetbrains.intellij.plugins:intellij-plugin-structure:1.29
   > Could not find org.jsoup:jsoup:1.8.3.
     Searched in the following locations:
         https://oss.sonatype.org/content/repositories/snapshots/org/jsoup/jsoup/1.8.3/jsoup-1.8.3.pom
         https://oss.sonatype.org/content/repositories/snapshots/org/jsoup/jsoup/1.8.3/jsoup-1.8.3.jar
         http://dl.bintray.com/jetbrains/intellij-plugin-service/org/jsoup/jsoup/1.8.3/jsoup-1.8.3.pom
         http://dl.bintray.com/jetbrains/intellij-plugin-service/org/jsoup/jsoup/1.8.3/jsoup-1.8.3.jar
     Required by:
         :flutter-intellij:0.0.1 > org.jetbrains.intellij.plugins:gradle-intellij-plugin:0.2.0-SNAPSHOT > org.jetbrains.intellij.plugins:intellij-plugin-structure:1.29
   > Could not find org.codehaus.plexus:plexus-archiver:2.3.
     Searched in the following locations:
         https://oss.sonatype.org/content/repositories/snapshots/org/codehaus/plexus/plexus-archiver/2.3/plexus-archiver-2.3.pom
         https://oss.sonatype.org/content/repositories/snapshots/org/codehaus/plexus/plexus-archiver/2.3/plexus-archiver-2.3.jar
         http://dl.bintray.com/jetbrains/intellij-plugin-service/org/codehaus/plexus/plexus-archiver/2.3/plexus-archiver-2.3.pom
         http://dl.bintray.com/jetbrains/intellij-plugin-service/org/codehaus/plexus/plexus-archiver/2.3/plexus-archiver-2.3.jar
     Required by:
         :flutter-intellij:0.0.1 > org.jetbrains.intellij.plugins:gradle-intellij-plugin:0.2.0-SNAPSHOT > org.jetbrains.intellij.plugins:intellij-plugin-structure:1.29

* Try:
Run with --stacktrace option to get the stack trace. Run with --debug option to get more log output.

BUILD FAILED

@zolotov
Copy link
Member

zolotov commented Sep 5, 2016

Looks like you should add mavenCentral to repositories lists, I'll update this in README, thank you.

Any idea when 0.2.0 would go stable?

not yet, I'm going to implement #110 and #17 before 0.2.0 release

@devoncarew
Copy link
Author

Woot! Those updated instructions work for me.

Is there a tracking issue for 0.2.0? I'd like to move off the snapshot dep once the fix is available in stable.

@zolotov
Copy link
Member

zolotov commented Sep 6, 2016

@devoncarew filed one: #132

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