Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@thomasbilk
Last active June 29, 2017 09:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save thomasbilk/19cfaf6cadbf01f028d9 to your computer and use it in GitHub Desktop.
Save thomasbilk/19cfaf6cadbf01f028d9 to your computer and use it in GitHub Desktop.
How to build a jruby jar with sass libs

Download jruby complete:

curl -O http://jruby.org.s3.amazonaws.com/downloads/1.7.13/jruby-complete-1.7.13.jar

Now rename it:

mv jruby-complete-1.7.13.jar scss.jar

Next install gems:

java -jar scss.jar -S gem install -i gems sass --no-document --no-format-executable
java -jar scss.jar -S gem install -i gems bourbon --no-document --no-format-executable
java -jar scss.jar -S gem install -i gems neat --no-document --no-format-executable

Finally bundle it:

jar uf scss.jar -C gems .

The new jar File can now be used like this:

java -jar scss.jar -S scss styles.scss
@dagoss
Copy link

dagoss commented Jun 29, 2017

This worked fine for me. I substituted in JRuby 9.1.12.0, and didn't have any issues

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment