Skip to content

Grails Asset Pipeline Problem #393

Open
@muneerjava17

Description

I am getting this error when I am setting up the project on the new machine. For the old machines everything is okay. I am using the below mentioned versions of the grails, asset-pipeline and sass-asset-pipeline. The error is mentioned below and further below you can see the build.gradle

Grails Version: 3.3.8
Groovy Version: 2.4.15
com.bertramlabs.plugins:asset-pipeline-gradle:2.14.1
com.bertramlabs.plugins:sass-asset-pipeline:2.7.4

ERROR:  Could not find a valid gem 'compass' (= 1.0.3), here is why:
          Unable to download data from https://rubygems.org/ - Received fatal alert: protocol_version (https://rubygems.org/specs.4.8.gz)
ERROR:  Could not find a valid gem 'chunky_png' (= 1.3.4), here is why:
          Unable to download data from https://rubygems.org/ - Received fatal alert: protocol_version (https://rubygems.org/specs.4.8.gz)
ERROR:  Could not find a valid gem 'compass-core' (= 1.0.3), here is why:
          Unable to download data from https://rubygems.org/ - Received fatal alert: protocol_version (https://rubygems.org/specs.4.8.gz)
ERROR:  Could not find a valid gem 'sass' (= 3.4.19), here is why:
          Unable to download data from https://rubygems.org/ - Received fatal alert: protocol_version (https://rubygems.org/specs.4.8.gz)
ERROR:  Could not find a valid gem 'fssm' (= 0.2.10), here is why:
          Unable to download data from https://rubygems.org/ - Received fatal alert: protocol_version (https://rubygems.org/specs.4.8.gz)
ERROR:  Could not find a valid gem 'ffi' (= 1.9.10), here is why:
          Unable to download data from https://rubygems.org/ - Received fatal alert: protocol_version (https://rubygems.org/specs.4.8.gz)
LoadError: no such file to load -- sass
               require at org/jruby/RubyKernel.java:1071
               require at /Users/muneer/.gradle/caches/modules-2/files-2.1/org.jruby/jruby-complete/1.7.18/a1be3e1790aace5c99614a87785454d875eb21c2/jruby-complete-1.7.18.jar!/META-INF/jruby.home/lib/ruby/shared/rubygems/core_ext/kernel_require.rb:55
               require at /Users/muneer/.gradle/caches/modules-2/files-2.1/org.jruby/jruby-complete/1.7.18/a1be3e1790aace5c99614a87785454d875eb21c2/jruby-complete-1.7.18.jar!/META-INF/jruby.home/lib/ruby/shared/rubygems/core_ext/kernel_require.rb:53
                (root) at <script>:4
                <init> at SassProcessor.groovy:63
       processedStream at AbstractAssetFile.groovy:170
          fileContents at DirectiveProcessor.groovy:307
  serveUncompiledAsset at AssetPipeline.groovy:65
      doFilterInternal at AssetPipelineFilter.groovy:214
2018-10-18 12:15:29.838 ERROR --- [io-8080-exec-10] .a.c.c.C.[.[.[.[grailsDispatcherServlet] : Servlet.service() for servlet [grailsDispatcherServlet] in context with path [] threw exception [Filter execution threw an exception] with root cause

org.jruby.exceptions.RaiseException: (LoadError) no such file to load -- sass
	at org.jruby.RubyKernel.require(org/jruby/RubyKernel.java:1071)
	at Kernel.require(/Users/muneer/.gradle/caches/modules-2/files-2.1/org.jruby/jruby-complete/1.7.18/a1be3e1790aace5c99614a87785454d875eb21c2/jruby-complete-1.7.18.jar!/META-INF/jruby.home/lib/ruby/shared/rubygems/core_ext/kernel_require.rb:55)
	at Kernel.require(/Users/muneer/.gradle/caches/modules-2/files-2.1/org.jruby/jruby-complete/1.7.18/a1be3e1790aace5c99614a87785454d875eb21c2/jruby-complete-1.7.18.jar!/META-INF/jruby.home/lib/ruby/shared/rubygems/core_ext/kernel_require.rb:53)
	at RUBY.(root)(<script>:4)
	at asset.pipeline.sass.SassProcessor.<init>(SassProcessor.groovy:63)
	at asset.pipeline.AbstractAssetFile.processedStream(AbstractAssetFile.groovy:170)
	at asset.pipeline.DirectiveProcessor.fileContents(DirectiveProcessor.groovy:307)
	at asset.pipeline.AssetPipeline.serveUncompiledAsset(AssetPipeline.groovy:65)
	at asset.pipeline.AssetPipelineFilter.doFilterInternal(AssetPipelineFilter.groovy:214)

buildscript {
    repositories {
        mavenLocal()
        maven { url "https://repo.grails.org/grails/core" }
    }
    dependencies {
        classpath "org.grails:grails-gradle-plugin:$grailsVersion"
        classpath "com.bertramlabs.plugins:asset-pipeline-gradle:2.14.1"
        classpath 'com.bertramlabs.plugins:sass-asset-pipeline:2.7.4'
        classpath 'org.grails.plugins:views-gradle:1.1.6'
        classpath "org.grails.plugins:hibernate5:${gormVersion-".RELEASE"}"
    }
}

version "0.1"
group "cover"

apply plugin:"eclipse"
apply plugin:"idea"
apply plugin:"war"
apply plugin:"org.grails.grails-web"
apply plugin:"org.grails.grails-gsp"
apply plugin:"asset-pipeline"
apply plugin: "org.grails.plugins.views-json"
apply plugin: 'codenarc'

repositories {
    mavenLocal()
    maven { url "https://repo.grails.org/grails/core" }
    maven { url 'http://dl.bintray.com/agorapulse/libs' }
}

dependencies {
    compile "org.springframework.boot:spring-boot-starter-logging"
    compile "org.springframework.boot:spring-boot-autoconfigure"
    compile "org.grails:grails-core"
    compile "org.springframework.boot:spring-boot-starter-actuator"
    provided "org.springframework.boot:spring-boot-starter-tomcat"
    compile "org.grails:grails-dependencies"
    compile "org.grails:grails-web-boot"
    compile "org.grails.plugins:cache"
    compile "org.grails.plugins:scaffolding"
    compile "org.grails.plugins:hibernate5"
    compile "org.hibernate:hibernate-core:5.1.3.Final"
    compile "org.hibernate:hibernate-ehcache:5.1.3.Final"
    console "org.grails:grails-console"
    profile "org.grails.profiles:web"
    compile "com.bertramlabs.plugins:asset-pipeline-grails:2.14.1"
    testCompile "org.grails:grails-plugin-testing"
    testCompile "org.grails.plugins:geb"
    testRuntime "org.seleniumhq.selenium:selenium-htmlunit-driver:2.47.1"
    testRuntime "net.sourceforge.htmlunit:htmlunit:2.18"

    compile 'org.grails.plugins:spring-security-core:3.1.1'
    compile 'org.webjars:font-awesome:4.5.0'
    compile 'org.webjars.bower:jquery-match-height:0.7.0'
    compile 'org.webjars:jquery:2.2.3'

    compile 'com.bertramlabs.plugins:sass-asset-pipeline:2.7.4'
    compile 'org.mariadb.jdbc:mariadb-java-client:1.4.5'

    compile "org.grails.plugins:views-json"
//    compile "org.grails.plugins:cookie-session:3.0.1"
    compile 'org.grails.plugins:spring-session:2.0.0-RC1'
    compile 'org.grails.plugins:grails-cookie:2.0.3'

    compile "org.grails:grails-datastore-rest-client:5.0.0.RC2"

    compile "joda-time:joda-time:2.3"
    compile "org.jadira.usertype:usertype.jodatime:2.0.1"
    compile 'org.grails.plugins:mail:2.0.0.RC6'
    //runtime 'org.grails.plugins:grails-melody-plugin:1.59.0'

    compile "org.grails.plugins:spring-security-rest:2.0.0.M2"
    compile 'org.grails.plugins:spring-security-rest-gorm:2.0.0.M2'

    /*compile 'org.grails.plugins:cxf:3.1.0'
    compile 'org.grails.plugins:cxf-client:3.0.7'*/

    compile files('lib/knet.jar')

    compile project(':safeguard')
}

task wrapper(type: Wrapper) {
    gradleVersion = gradleWrapperVersion
}

bootRun {
    jvmArgs('-Dspring.output.ansi.enabled=always')
    addResources = true
}

assets {
    minifyJs = true
    minifyCss = true
    excludes = ['**/*.scss', 'bootstrap-sass/**/*']
    includes = ['application.scss']
}

// These rules will be applied to app code
codenarcMain {
    configFile file('config/codenarc/codenarc.groovy')
}

Activity

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

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions