gradle-compass icon indicating copy to clipboard operation
gradle-compass copied to clipboard

Unable to resolve dependency for rb-inotify

Open michaelwoodson opened this issue 9 years ago • 2 comments

Since about a week ago, there has been an issue trying to run this plugin. If the gems aren't already set up, dependency resolution will give this error:

:testproject:compassCompile FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':interact:compassCompile'.
> Could not resolve all dependencies for configuration ':testproject:compass'.
   > Could not find rb-inotify.gem (rubygems:rb-inotify:0.9.7).
     Searched in the following locations:
         http://rubygems-proxy.torquebox.org/releases/rubygems/rb-inotify/0.9.7/rb-inotify-0.9.7.gem

The underlying issue seems to be internal changes in the jruby-gradle-plugin that switch a maven gem proxy from http://rubygems-proxy.torquebox.org to http://rubygems.lasagna.io/.

Any clean build should reproduce this error, but I could make a build file if needed.

I made a pull request to upgrade dependencies as an option to resolve this problem: https://github.com/robfletcher/gradle-compass/pull/55

michaelwoodson avatar Feb 13 '16 19:02 michaelwoodson

"For now you can force Gradle to use the old version.

configurations.all { resolutionStrategy.force 'rubygems:rb-inotify:0.9.5' }"

see: https://github.com/robfletcher/gradle-compass/issues/54

RoelRoel avatar Feb 16 '16 12:02 RoelRoel

Seems like you can remove the customization now and close this issue. In Compass 1.0.3 pom.xml they specify dependency to notify like this:

<dependency>
  <groupId>rubygems</groupId>
  <artifactId>rb-inotify</artifactId>
  <version>[0.9,)</version>
  <type>gem</type>
</dependency>

so it should take the latest available version after 0.9. I tried it in my project and it successfully found the rb-inotify version 0.9.7.

vgarmash avatar Oct 31 '16 21:10 vgarmash