robfletcher/gradle-compass

FFI is broken on Windows 10 x64 (and possibly others). Easy fix.

nedtwigg opened this issue · 2 comments

I've got a really simple build.gradle.

plugins {
    id "com.github.robfletcher.compass" version "2.0.6"
}

repositories {
    mavenCentral()
}

compass {
    cssDir = file("build/css")
    sassDir = file("sass")
}

When I try gradlew compassCompile, here's what I get:

(a bunch of downloads)
Download http://rubygems-proxy.torquebox.org/releases/rubygems/ffi/1.9.10/ffi-1.9.10.gem
ERROR:  Loading command: install (LoadError)
        Could not load FFI Provider: (NotImplementedError) FFI not available: null
 See http://jira.codehaus.org/browse/JRUBY-4583
ERROR:  While executing gem ... (NoMethodError)
    undefined method `invoke_with_build_args' for nil:NilClass

By looking at #37, I was able to fix this by prefixing my buildscript with this snippet:

buildscript {
    repositories {
        mavenCentral()
    }
    dependencies {
        classpath "com.github.jruby-gradle:jruby-gradle-plugin:0.1.17"
    }
}

It would be cool if the plugin worked out of the box. Also, jruby-gradle-plugin:0.1.17 is from June 2015. Since then they've made it to 1.2.0 in December 2015. Might be worth updating to the latest version.

Hi, is there any chance that somebody could fix this issue. When we changed jruby to the old version compass tasks are not failing but compass does not see any changes in scss files in runtime

I am also only able to get the gradle-compass plugin to work using jruby-gradle-plugin version 0.1.17, no higher versions. I tried 1.3.+, 1.2.+, and 1.+.