sass-java icon indicating copy to clipboard operation
sass-java copied to clipboard

Question: Usage with gradle

Open ehhc opened this issue 9 years ago • 0 comments

Is it possible to use the compiler with gradle? Did somebody manged to do so successfully?

I / We tried to do so, but got some bugs because with gradle the compiler isn't able to find the dll-files any more.. (see https://discuss.gradle.org/t/ant-task-with-native-libs/19527). I haven't found a solution for that problem yet... Any ideas?

As mentioned in the link i posted above, i tried the following:

apply plugin: 'java'

repositories {
    jcenter()
}

configurations {
    sass
}

dependencies {
    sass "com.cathive.sass:sass-java:4.0.0"
}

task sassCompile << {
    ant.taskdef (name:'sass', classname:'com.cathive.sass.SassTask', classpath: configurations.sass.asPath)
    ant.sass (in: file('test.scss'), outDir: file('.'))
}

ehhc avatar Sep 30 '16 14:09 ehhc