eriwen / gradle-js-plugin

Gradle plugin for working with JS
http://eriwen.github.io/gradle-js-plugin
Apache License 2.0
382 stars 113 forks source link

jshint dependency problem #98

Open Bartheleway opened 10 years ago

Bartheleway commented 10 years ago

Hi, I'm facing a problem with the jshint task.

I get the following error:

Could not resolve all dependencies for configuration ':rhino'.
   > Could not find org.mozilla:rhino:1.7R3.

I already did some research and found the issue https://github.com/eriwen/gradle-js-plugin/issues/16 but the strange thing is that I'm not offline ...

bobsta commented 10 years ago

I can also reproduce this bug using the following build file. (The source file is an empty file).

buildscript {
    repositories {
        mavenCentral()
    }
    dependencies {
        classpath 'com.eriwen:gradle-js-plugin:1.12.+'
    }
}

configurations {
    rhino
}

dependencies {
    rhino 'org.mozilla:rhino:1.7R3'
}

// Invoke the plugin
apply plugin: 'js'

jshint {
    tasks.jshint.source = "javascript.js"
}
paleozogt commented 10 years ago

I am seeing this also. I think #15 has regressed.

Scuilion commented 10 years ago

A work around is to include mavenCentral

buildscript {
  repositories {
    jcenter()
  }
  dependencies {
    classpath "com.eriwen:gradle-js-plugin:1.12.1"
  }
}

repositories {
    mavenCentral()
}
apply plugin: "com.eriwen.gradle.js"
akauppi commented 9 years ago

Thanks, @Scuilion. That helped me with this on Gradle 2.3.