gradle-compass
gradle-compass copied to clipboard
Unable to resolve dependency for rb-inotify
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
"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
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.