gradle-js-plugin icon indicating copy to clipboard operation
gradle-js-plugin copied to clipboard

JSHint properties source dest collision

Open ixchelruiz opened this issue 10 years ago • 0 comments

Gradle 2.1 'com.eriwen:gradle-js-plugin:1.12.1'

As Peter Niederwieser pointed " the jshint extension doesn't have a source or reporter property. Probably it's a name collision between the jshint extension and the jshint task, and you'll have to use tasks.jshint { ... }."

Solution: tasks.jshint.source = appJsFiles tasks.jshint.dest = file ("${buildDir}/jshint.out") tasks.jshint.outputToStdOut = true tasks.jshint.reporter = 'checkstyle'

OPTIONS jshint.options = [ <-------------------- how do I specify the jshintrc file as Gulp, Grunt , etc ]

ixchelruiz avatar Nov 19 '14 15:11 ixchelruiz