robfletcher / gradle-compass

A SASS / Compass plugin for Gradle
Apache License 2.0
59 stars 39 forks source link

Using a specific version of a gem does not work #19

Closed robinhh closed 10 years ago

robinhh commented 10 years ago

I'm using this plugin to compile bootstrap-sass and everything works as expected unless I try to use a specific version of bootstrap-sass. Then I receive this error:

:installCompass
Successfully installed compass-0.12.3
ERROR:  Could not find a valid gem 'bootstrap-sass:3.1.1.0' (>= 0) in any repository
ERROR:  Possible alternatives: bootstrap-sass, bootstrap-sass-rtl, bootstrap-assets, bootstrap-jasny, bootstrap-sass-keppy

So this build script works and installs a gem "bootstrap-sass-3.1.1.0":

buildscript {
  repositories {
    mavenCentral()
    maven { url 'http://dl.bintray.com/robfletcher/gradle-plugins' }
  }
  dependencies {
    classpath 'org.gradle.plugins:gradle-compass:1.0.9'
  }
} 
...
compass {
 gems = ['compass', 'bootstrap-sass']
}

But if I specify

compass {
 gems = ['compass', 'bootstrap-sass:3.1.1.0']
}

or any other version I receive the aforementioned error message.

robfletcher commented 10 years ago

You need to use 1.0.10 for this to work.

robinhh commented 10 years ago

Oh that was easy! I've thought 1.0.9 to be the latest version because of the version history in the Github Readme. Should have looked into build.gradle ... Thanks anyway!

robfletcher commented 10 years ago

Sorry, I forgot to update that. My mistake.

On Mon, Mar 17, 2014 at 6:10 PM, Robin Sander notifications@github.com wrote:

Oh that was easy! I've thought 1.0.9 to be the latest version because of the version history in the Github Readme. Should have looked into build.gradle ...

Thanks anyway!

Reply to this email directly or view it on GitHub: https://github.com/robfletcher/gradle-compass/issues/19#issuecomment-37850072