Closed zackarychapple closed 11 years ago
That's very odd jruby-complete
is hosted on Maven Central. Did you have an internet connection at the time?
Yes, I had internet connection. Actually a little above this error I watched it download jruby complete. I also have tried this on two different machines, one my laptop at home (macbook pro) and the other being a PC at work running windows 7.
Also I posted all the code I am using in StackOverflow.
http://stackoverflow.com/questions/18007865/simple-gradle-build-running-compass-failing/
I noticed that my gems directory that was added by the compileSass task is empty. Could that be contributing to the issue?
You shouldn't need to specify the JRuby dependency yourself as the compass plugin does it for you. For an example see this build: https://github.com/robfletcher/midcentury-ipsum/blob/master/build.gradle which runs on my local machine and on a Heroku dyno.
That said I don't think that's the root of the problem.
Could something be missing from my build machine or a gradle configuration ? I'm able to run compass from command line in other apps and I can run gradle against other apps as well. I am starting to think it might have something to do with that empty jruby directory.
The plugin has an installCompass
command that installs gems into that
directory. It doesn't look like you're getting that far.
Have you tried cloning & running
https://github.com/robfletcher/midcentury-ipsum – I'd be interested to see
if that works for you. You can run it with ./gradlew run
from the root
directory.
On Wednesday, August 7, 2013, Zack Chapple wrote:
Could something be missing from my build machine or a gradle configuration ? I'm able to run compass from command line in other apps and I can run gradle against other apps as well. I am starting to think it might have something to do with that empty jruby directory.
— Reply to this email directly or view it on GitHubhttps://github.com/robfletcher/gradle-compass/issues/6#issuecomment-22245764 .
After adding the following I was able to get it to work. I saw that you had these in our example. Don't know why I needed them or why it works with them, but it does.
repositories {
mavenCentral()
}
task wrapper(type: Wrapper) { gradleVersion = "1.6" }
Ah, I missed that the mavenCentral in your initial report was inside the buildscript section. That would explain it. The wrapper task is irrelevant.
On Wednesday, August 7, 2013, Zack Chapple wrote:
After adding the following I was able to get it to work. I saw that you had these in our example. Don't know why I needed them or why it works with them, but it does.
repositories { mavenCentral() }
task wrapper(type: Wrapper) { gradleVersion = "1.6" }
— Reply to this email directly or view it on GitHubhttps://github.com/robfletcher/gradle-compass/issues/6#issuecomment-22248270 .
Fantastic. Glad to know what it was. Have a great evening!
If a repository like mavenCentral or jCenter needs to be defined inside a repository main block, the README instructions should say so.
@tkruse you're right. I've updated the readme
I made a project with just the following in the build.gradle. However i get an error saying "Could not find org.jruby:jruby-complete:1.7.3" I watched it download when the project was initially being built. Any ideas?
apply plugin: 'compass' buildscript { repositories { mavenLocal() mavenCentral() maven { url 'http://dl.bintray.com/robfletcher/gradle-plugins' } } dependencies { classpath 'org.jruby:jruby-complete:1.7.3' classpath 'org.gradle.plugins:gradle-compass:1.0.7' } } compass { cssDir = file('public/styles') sassDir = file('scss') }