Skip to content
This repository has been archived by the owner on Jul 17, 2022. It is now read-only.

jshint dependency problem #98

Open
Bartheleway opened this issue Jun 5, 2014 · 4 comments
Open

jshint dependency problem #98

Bartheleway opened this issue Jun 5, 2014 · 4 comments

Comments

@Bartheleway
Copy link

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 #16 but the strange thing is that I'm not offline ...

@bobsta
Copy link

bobsta commented Jul 5, 2014

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
Copy link

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

@Scuilion
Copy link
Contributor

Scuilion commented Oct 3, 2014

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
Copy link

akauppi commented Feb 17, 2015

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants